Class AbstractShape
Represents a shape in presentation content.
Inheritance
Implements
Inherited Members
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.dll
Syntax
public class AbstractShape : IDrawingObject
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Constructors
AbstractShape()
Initializes a new instance of the abstract shape class.
Declaration
protected AbstractShape()
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Properties
Action
Gets the click and hover action settings for this shape.
Maps to a:cNvPr/a:hlinkClick and a:cNvPr/a:hlinkHover.
Declaration
public ActionSettings Action { get; }
Property Value
| Type | Description |
|---|---|
| ActionSettings |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Adjustments
Gets the collection of adjustments associated with this object.
Declaration
public virtual List<long> Adjustments { get; }
Property Value
| Type | Description |
|---|---|
| List<long> |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
AlternateText
Gets or sets the alternate text text.
Declaration
public string AlternateText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
AnchorPosition
Gets the shape's position relative to its anchor.
Declaration
public Position AnchorPosition { get; }
Property Value
| Type | Description |
|---|---|
| Position |
Remarks
It is different if the shape is anchored to a cell.
BinaryExternalObject
Handles from for this abstract shape.
Declaration
public BinaryExternalObjectProjection BinaryExternalObject { get; }
Property Value
| Type | Description |
|---|---|
| BinaryExternalObjectProjection |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
BinaryPreservedFragments
Handles from shape for this abstract shape.
Declaration
public IReadOnlyList<PreservedFragment> BinaryPreservedFragments { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<PreservedFragment> |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Effects
Gets or sets the effects associated with this object.
Declaration
public virtual Effects Effects { get; }
Property Value
| Type | Description |
|---|---|
| Effects |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Fill
Gets or sets the fill associated with this object.
Declaration
public virtual Fill Fill { get; }
Property Value
| Type | Description |
|---|---|
| Fill |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
FlipH
Gets or sets the flip h associated with this object.
Declaration
public virtual bool FlipH { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
FlipV
Gets or sets the flip v associated with this object.
Declaration
public virtual bool FlipV { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Hidden
Gets or sets the hidden associated with this object.
Declaration
public virtual bool Hidden { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
HyperLink
Gets or sets the hyper link associated with this object.
Declaration
public Hyperlink HyperLink { get; set; }
Property Value
| Type | Description |
|---|---|
| Hyperlink |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Id
Gets or sets the id associated with this object.
Declaration
public int Id { get; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
IsCameo
Gets or sets whether is cameo is enabled.
Declaration
public bool IsCameo { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
IsEffective
Gets a value indicating whether this shape is an effective inherited result rather than an entry owned by the current collection.
Declaration
public bool IsEffective { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
IsMathShape
Gets or sets whether is math shape is enabled.
Declaration
public virtual bool IsMathShape { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
IsSmartArt
Gets or sets whether is smart art is enabled.
Declaration
public bool IsSmartArt { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Line
Gets or sets the line associated with this object.
Declaration
public virtual Line Line { get; }
Property Value
| Type | Description |
|---|---|
| Line |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
LockText
Gets or sets the lock text associated with this object.
Declaration
public bool LockText { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Locked
Gets or sets the locked associated with this object.
Declaration
public bool Locked { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Locks
Gets the granular locking flags for this shape, or null
when no granular locks have been set. Maps to a:spLocks.
Use EnableLocks() to create the lock object on first access.
Declaration
public ShapeLocks Locks { get; }
Property Value
| Type | Description |
|---|---|
| ShapeLocks |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
MediaObject
Gets or sets the media object associated with this object.
Declaration
public MediaObject MediaObject { get; }
Property Value
| Type | Description |
|---|---|
| MediaObject |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Name
Gets or sets the name text.
Declaration
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
OleObject
Gets or sets the ole object associated with this object.
Declaration
public OleObject OleObject { get; }
Property Value
| Type | Description |
|---|---|
| OleObject |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
ParentGroup
Gets or sets the parent group associated with this object.
Declaration
public GroupShape ParentGroup { get; }
Property Value
| Type | Description |
|---|---|
| GroupShape |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Placeholder
Gets the placeholder descriptor for this shape, or null when
the shape is not a placeholder. Provides typed access to the
placeholder type, size, index, and orientation. Maps to p:ph.
Declaration
public Placeholder Placeholder { get; }
Property Value
| Type | Description |
|---|---|
| Placeholder |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
PlaceholderType
Gets or sets the placeholder type associated with this object.
Declaration
public virtual PlaceholderType? PlaceholderType { get; set; }
Property Value
| Type | Description |
|---|---|
| PlaceholderType? |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
PolygonPoints
Gets the collection of polygon points associated with this object.
Declaration
public List<PointDoubleUnit> PolygonPoints { get; }
Property Value
| Type | Description |
|---|---|
| List<PointDoubleUnit> |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Position
Gets or sets the position associated with this object.
Declaration
public virtual Position Position { get; protected set; }
Property Value
| Type | Description |
|---|---|
| Position |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
PrintObject
Gets or sets the print object associated with this object.
Declaration
public virtual bool PrintObject { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
RelativePosition
Gets or sets the relative position associated with this object.
Declaration
public RelativePosition RelativePosition { get; set; }
Property Value
| Type | Description |
|---|---|
| RelativePosition |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
RotationAngle
Gets or sets the rotation angle associated with this object.
Declaration
public virtual double RotationAngle { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
ShapeType
Gets or sets the shape type associated with this object.
Declaration
public virtual ShapeType ShapeType { get; set; }
Property Value
| Type | Description |
|---|---|
| ShapeType |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Size
Gets or sets the size associated with this object.
Declaration
public virtual Size Size { get; protected set; }
Property Value
| Type | Description |
|---|---|
| Size |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
SmartArt
Gets or sets the smart art associated with this object.
Declaration
public SmartArtShapeInfo SmartArt { get; }
Property Value
| Type | Description |
|---|---|
| SmartArtShapeInfo |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Tags
Gets the key-value tag collection for custom data storage on this shape.
Maps to p:custDataLst/p:tagLst.
Declaration
public TagCollection Tags { get; }
Property Value
| Type | Description |
|---|---|
| TagCollection |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
ZOrderPosition
Gets or sets the z order position associated with this object.
Declaration
public int ZOrderPosition { get; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
Methods
EnableLocks()
Gets the locking flags for this shape, creating the ShapeLocks object on first access.
Declaration
public ShapeLocks EnableLocks()
Returns
| Type | Description |
|---|---|
| ShapeLocks |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
GetGeometryPaths()
Gets the custom geometry paths assigned to this shape.
Declaration
public virtual IReadOnlyList<GeometryPath> GetGeometryPaths()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<GeometryPath> |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
SetImage(string)
Sets the image for this abstract shape.
Declaration
public virtual AbstractShape SetImage(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The path supplied to this operation. |
Returns
| Type | Description |
|---|---|
| AbstractShape | The set image value produced by the operation. |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.
WithAdjustments(params long[])
Handles with adjustments for this abstract shape.
Declaration
public AbstractShape WithAdjustments(params long[] adjustments)
Parameters
| Type | Name | Description |
|---|---|---|
| long[] | adjustments |
Returns
| Type | Description |
|---|---|
| AbstractShape | The with adjustments value produced by the operation. |
Remarks
A presentation shape is owned by slide or grouped drawing content and may inherit defaults from a layout or master. Its position is expressed in slide coordinates.