ApplyPreset(ShapePreset) Method
Applies a predefined fill and outline (
ShapePreset) to this shape.
Note that ShapePresets cannot be applied to line geometries (see Extensions.IsLineGeometry). If GeometryType of this shape is a line geometry, this method will do nothing and return false. For line geometries use ApplyPreset(LineShapePreset) instead.
'Declaration
Public Overloads Function ApplyPreset( _
ByVal As ShapePreset _
) As System.Boolean
public System.bool ApplyPreset(
ShapePreset
)
Parameters
- preset
- The preset to apply.
Return Value
True if the preset was applied, false otherwise (if this shape is a line geometry).