[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Shape.ApplyThemedStyle

ApplyThemedStyle Method

ApplyThemedStyle(ThemedShapeStyle)

Applies a predefined ThemedShapeStyle to this shape.

Note that ThemedShapeStyles 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 ApplyThemedStyle(ThemedLineStyle) instead.

Declaration
public bool ApplyThemedStyle(ThemedShapeStyle themedStyle)
Public Function ApplyThemedStyle(themedStyle As ThemedShapeStyle) As Boolean
Parameters
Type Name Description
ThemedShapeStyle themedStyle

The style to apply.

Returns
Type Description
bool

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

ApplyThemedStyle(ThemedLineStyle)

Applies a predefined ThemedLineStyle to this shape.

Note that ThemedLineStyles cannot be applied to non-line geometries (see IsLineGeometry(GeometryType)). If GeometryType of this shape is not a line geometry, this method will do nothing and return false. For line geometries use ApplyThemedStyle(ThemedShapeStyle) instead.

Declaration
public bool ApplyThemedStyle(ThemedLineStyle themedStyle)
Public Function ApplyThemedStyle(themedStyle As ThemedLineStyle) As Boolean
Parameters
Type Name Description
ThemedLineStyle themedStyle

The style to apply.

Returns
Type Description
bool

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