SmartArt

SmartArt class

Represents a SmartArt diagram

public class SmartArt : GraphicalObject, ISmartArt

Properties

Name Description
AllNodes { get; } Returns collections of all nodes in the SmartArt object. Read-only ISmartArtNodeCollection.
AlternativeText { get; set; } Returns or sets the alternative text associated with a shape. Read/write String.
AlternativeTextTitle { get; set; } Returns or sets the title of alternative text associated with a shape. Read/write String.
BlackWhiteMode { get; set; } Property specifies how a shape will render in black-and-white display mode.. Read/write BlackWhiteMode.
ColorStyle { get; set; } Returns or sets color style of SmartArt object. Read/write SmartArtColorType.
ConnectionSiteCount { get; } Returns the number of connection sites on the shape. Read-only Int32.
CustomData { get; } Returns the shape’s custom data. Read-only ICustomData.
virtual EffectFormat { get; } Returns the EffectFormat object which contains pixel effects applied to a shape. Note: can return null for certain types of shapes which don’t have effect properties. Read-only IEffectFormat.
virtual FillFormat { get; } Returns the FillFormat object that contains fill formatting properties for a shape. Note: can return null for certain types of shapes which don’t have fill properties. Read-only IFillFormat.
Frame { get; set; } Returns or sets the shape frame’s properties. Read/write IShapeFrame.
GraphicalObjectLock { get; } Returns shape’s locks. Read-only IGraphicalObjectLock.
Height { get; set; } Returns or sets the height of the shape. Read/write Single.
Hidden { get; set; } Determines whether the shape is hidden. Read/write Boolean.
HyperlinkClick { get; set; } Returns or sets the hyperlink defined for mouse click. Read/write IHyperlink.
HyperlinkManager { get; } Returns the hyperlink manager. Read-only IHyperlinkManager.
HyperlinkMouseOver { get; set; } Returns or sets the hyperlink defined for mouse over. Read/write IHyperlink.
IsGrouped { get; } Determines whether the shape is grouped. Read-only Boolean.
IsReversed { get; set; } Return or set the state of the SmartArt diagram with regard to (left-to-right) LTR or (right-to-left) RTL, if the diagram supports reversal. Read/write Boolean.
IsTextHolder { get; } Determines whether the shape is TextHolder_PPT. Read-only Boolean.
Layout { get; set; } Returns or sets layout of the SmartArt object. Read/write SmartArtLayoutType.
virtual LineFormat { get; } Returns the LineFormat object that contains line formatting properties for a shape. Note: can return null for certain types of shapes which don’t have line properties. Read-only ILineFormat.
Name { get; set; } Returns or sets the name of a shape. Must be not null. Use empty string value if needed. Read/write String.
Nodes { get; } Returns collections of root nodes in SmartArt object. Read-only ISmartArtNodeCollection.
OfficeInteropShapeId { get; } Gets unique shape identifier in slide scope. Read-only UInt32. See also UniqueId for getting unique shape identifier in presentation scope.
ParentGroup { get; } Returns parent GroupShape object if shape is grouped. Otherwise returns null. Read-only IGroupShape.
Placeholder { get; } Returns the placeholder for a shape. Returns null if the shape has no placeholder. Read-only IPlaceholder.
Presentation { get; } Returns the parent presentation of a slide. Read-only IPresentation.
QuickStyle { get; set; } Returns or sets quick style of SmartArt object. Read/write SmartArtQuickStyleType.
RawFrame { get; set; } Returns or sets the raw shape frame’s properties. Read/write IShapeFrame.
Rotation { get; set; } Returns or sets the number of degrees the specified shape is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Read/write Single.
ShapeLock { get; } Returns shape’s locks. Read-only IGraphicalObjectLock. (2 properties)
Slide { get; } Returns the parent slide of a shape. Read-only IBaseSlide.
virtual ThreeDFormat { get; } Returns the ThreeDFormat object that 3d effect properties for a shape. Note: can return null for certain types of shapes which don’t have 3d properties. Read-only IThreeDFormat.
UniqueId { get; } Gets unique shape identifier in presentation scope. Read-only UInt32. See also OfficeInteropShapeId for getting unique shape identifier in slide scope.
Width { get; set; } Returns or sets the width of the shape. Read/write Single.
X { get; set; } Returns or sets the x-coordinate of the upper-left corner of the shape. Read/write Single.
Y { get; set; } Returns or sets the y-coordinate of the upper-left corner of the shape. Read/write Single.
virtual ZOrderPosition { get; } Returns the position of a shape in the z-order. Shapes[0] returns the shape at the back of the z-order, and Shapes[Shapes.Count - 1] returns the shape at the front of the z-order. Read-only Int32.

Methods

Name Description
AddPlaceholder(IPlaceholder) Adds a new placeholder if there is no and sets placeholder properties to a specified one.
GetThumbnail() Returns shape thumbnail. ShapeThumbnailBounds.Shape shape thumbnail bounds type is used by default.
GetThumbnail(ShapeThumbnailBounds, float, float) Returns shape thumbnail.
RemovePlaceholder() Defines that this shape isn’t a placeholder.
WriteAsSvg(Stream) Saves content of Shape as SVG file.
WriteAsSvg(Stream, ISVGOptions) Saves content of Shape as SVG file.

See Also