SimpleFillSymbol QML Type

  • Esri.ArcGISRuntime
  • SimpleFillSymbol
  • Uses predefined patterns and colors to symbolize graphics and features that have polygon geometry. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.0
    Inherits:

    FillSymbol

    Properties

    • style : Enums.SimpleFillSymbolStyle

    Signals

    Methods

    Detailed Description

    Simple fill symbols can fill the interior of polygons using predefined fill patterns such as Enums.SimpleFillSymbolStyleBackwardDiagonal, Enums.SimpleFillSymbolStyleVertical, Enums.SimpleFillSymbolStyleHorizontal and Enums.SimpleFillSymbolStyleCross, as well as Enums.SimpleFillSymbolStyleSolid colors. These symbols can have an optional outline, which is defined by SimpleLineSymbol.

    Example:

    Create a SimpleFillSymbol and set its style, color, and outline:

    SimpleFillSymbol {
        id: simpleFillSymbol
        color: "red"
        style: Enums.SimpleFillSymbolStyleSolid
    
        //set the outline
        SimpleLineSymbol {
            style: Enums.SimpleLineSymbolStyleSolid
            color: "black"
            width: 2.0
        }
    }

    See also JsonSerializable and Symbol.

    Property Documentation

    style : Enums.SimpleFillSymbolStyle

    The style of the symbol's fill pattern.

    Enums.SimpleFillSymbolStyleSolid if an error occurs.

    See also Enums.SimpleFillSymbolStyle.


    Signal Documentation

    styleChanged()

    Emitted when the style property changes.

    Note: The corresponding handler is onStyleChanged.


    Method Documentation

    [since Esri.ArcGISRuntime 200.1] bool equals(SimpleFillSymbol other)

    Compares two SimpleFillSymbols for equality.

    Returns whether this instance and other are equivalent.

    This method was introduced in Esri.ArcGISRuntime 200.1.


    [since Esri::ArcGISRuntime 100.5] MultilayerPolygonSymbol toMultilayerSymbol()

    Gets a MultilayerPolygonSymbol from a SimpleFillSymbol.

    This method allows you to create complex and custom symbols with multiple layers of different types of symbology. Simple fill symbol provides a factory of predefined fill styles such as cross and backward_diagonal. This method generates a MultilayerPolygonSymbol with a HatchFillSymbolLayer for any of the styles containing lines, or a SolidFillSymbolLayer if the fill style is Enums.SimpleFillSymbolStyleSolid.

    This method was introduced in Esri::ArcGISRuntime 100.5.


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.