[]
Represents a shape element in a body content.
public class Shape : ShapeBase, IBrowsable<Shape>
Gets the shape effects formatting properties.
public ShapeEffects Effects { get; }
Gets the fill formatting properties.
public FillFormat Fill { get; }
Gets or sets the geometry type of this shape.
public GeometryType GeometryType { get; set; }
Gets the line formatting properties.
public LineFormat Line { get; }
Gets the first linked text frame that participates in a text frame story.
public LinkedTextFrame LinkedTextFrame { get; }
Gets the next shape.
public Shape Next { get; }
Gets the previous shape.
public Shape Previous { get; }
Gets the style information for this shape.
public ShapeStyle Style { get; }
Gets the text content of this shape.
public TextFrame TextFrame { get; }
Adds a linked text frame that participates in a text frame story.
Note that some geometries do not allow text frames (see TextFrameSupported(GeometryType)). If GeometryType of this shape does not support text frames, an exception will be thrown.
public LinkedTextFrame AddLinkedTextFrame(TextFrame linkTo, int index)
linkTo
TextFrameThe main text frame that starts the text frame story.
index
intThe 1-based index of the linked text frame in the story.
The added LinkedTextFrame.
Adds a linked text frame that participates in a text frame story.
Note that some geometries do not allow text frames (see TextFrameSupported(GeometryType)). If GeometryType of this shape does not support text frames, an exception will be thrown.
public LinkedTextFrame AddLinkedTextFrame(TextFrame linkTo)
linkTo
TextFrameThe main text frame that starts the text frame story.
The added LinkedTextFrame.
Adds a text frame to this shape.
Note that some geometries do not allow text frames (see TextFrameSupported(GeometryType)). If GeometryType of this shape does not support text frames, an exception will be thrown.
public TextFrame AddTextFrame(string text = null, Style style = null)
text
stringThe text frame content.
style
StyleThe text frame content style.
public void ApplyEffectsPreset(ShapeEffectsPreset preset)
preset
ShapeEffectsPresetApplies a predefined outline (LineShapePreset) to this shape.
Note that LineShapePresets can only be applied to line geometries (see IsLineGeometry(GeometryType)). 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.
public bool ApplyPreset(LineShapePreset preset)
preset
LineShapePresetThe preset to apply.
True if the preset was applied, false otherwise (if this shape is not a line geometry).
Applies a predefined fill and outline (ShapePreset) to this shape.
Note that ShapePresets 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 ApplyPreset(LineShapePreset) instead.
public bool ApplyPreset(ShapePreset preset)
preset
ShapePresetThe preset to apply.
True if the preset was applied, false otherwise (if this shape is a line geometry).
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.
public bool ApplyThemedStyle(ThemedLineStyle themedStyle)
themedStyle
ThemedLineStyleThe style to apply.
True if the style was applied, false otherwise (if this shape is not a line geometry).
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.
public bool ApplyThemedStyle(ThemedShapeStyle themedStyle)
themedStyle
ThemedShapeStyleThe style to apply.
True if the style was applied, false otherwise (if this shape is a line geometry).