Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / Shape Class / ApplyPreset Method / ApplyPreset(ShapePreset) Method
The preset to apply.

In This Topic
    ApplyPreset(ShapePreset) Method
    In This Topic
    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.

    Syntax
    'Declaration
     
    Public Overloads Function ApplyPreset( _
       ByVal preset As ShapePreset _
    ) As System.Boolean
    public System.bool ApplyPreset( 
       ShapePreset preset
    )

    Parameters

    preset
    The preset to apply.

    Return Value

    True if the preset was applied, false otherwise (if this shape is a line geometry).
    See Also