Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / Shape Class / ApplyPreset Method

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

    Overload List
    OverloadDescription
    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.

     
    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.

     
    See Also