[]
Applies a predefined fill and outline (ShapePreset) to this shape.
Note that ShapePresets cannot be applied to line geometries (see IsLineGeometry(GeometryType)). If GeometryType of this shape is a line geometry, this method will do nothing and return false. For line geometries use ApplyPreset(LineShapePreset) instead.
public bool ApplyPreset(ShapePreset preset)
| Type | Name | Description |
|---|---|---|
| ShapePreset | preset | The preset to apply. |
| Type | Description |
|---|---|
| bool | True if the preset was applied, false otherwise (if this shape is a line geometry). |
Applies a predefined outline (LineShapePreset) to this shape.
Note that LineShapePresets can only be applied to line geometries (see IsLineGeometry(GeometryType)). If GeometryType of this shape is not a line geometry, this method will do nothing and return false. For non-line geometries use ApplyPreset(ShapePreset) instead.
public bool ApplyPreset(LineShapePreset preset)
| Type | Name | Description |
|---|---|---|
| LineShapePreset | preset | The preset to apply. |
| Type | Description |
|---|---|
| bool | True if the preset was applied, false otherwise (if this shape is not a line geometry). |