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

In This Topic
    ApplyPreset(LineShapePreset) Method
    In This Topic
    Applies a predefined outline (LineShapePreset) to this shape.

    Note that LineShapePresets can only be applied to line geometries (see Extensions.IsLineGeometry). 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.

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

    Parameters

    preset
    The preset to apply.

    Return Value

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