Class ShapeBase
Represents a ShapeBase.
Inherited Members
Namespace: DRIT.Document.Drawing
Assembly: DRIT.Document.dll
Syntax
public abstract class ShapeBase : Story, IEnumerable<Node>, IEnumerable
Properties
AllowOverlap
Gets or sets a value that specifies whether this shape can overlap other shapes.
Declaration
public bool AllowOverlap { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AlternateText
Gets or sets alternate text.
Declaration
public string AlternateText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
AnchorLocked
Gets or sets anchor locked.
Declaration
public bool AnchorLocked { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AspectRatioLocked
Gets or sets aspect ratio locked.
Declaration
public bool AspectRatioLocked { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
BehindText
Gets or sets behind text.
Declaration
public bool BehindText { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Bottom
Gets or sets bottom.
Declaration
public double Bottom { get; }
Property Value
| Type | Description |
|---|---|
| double |
Bounds
Gets or sets the location and size of the containing block of the shape.
Declaration
public RectangleF Bounds { get; set; }
Property Value
| Type | Description |
|---|---|
| RectangleF |
BoundsInPoints
Gets the location and size of the containing block of the shape in points, relative to the anchor of the topmost shape.
Declaration
public RectangleF BoundsInPoints { get; }
Property Value
| Type | Description |
|---|---|
| RectangleF |
BoundsWithEffects
Gets final extent that this shape object has after applying drawing effects. Value is measured in points.
Declaration
public RectangleF BoundsWithEffects { get; }
Property Value
| Type | Description |
|---|---|
| RectangleF |
CoordOrigin
The coordinates at the top-left corner of the containing block of this shape.
Declaration
public Point CoordOrigin { get; set; }
Property Value
| Type | Description |
|---|---|
| Point |
CoordSize
The width and height of the coordinate space inside the containing block of this shape.
Declaration
public Size CoordSize { get; set; }
Property Value
| Type | Description |
|---|---|
| Size |
Remarks
The default value is (1000, 1000).
DistanceBottom
Returns or sets the distance (in points) between the document text and the bottom edge of the shape.
Declaration
public double DistanceBottom { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
DistanceLeft
Gets or sets distance left.
Declaration
public double DistanceLeft { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
DistanceRight
Gets or sets distance right.
Declaration
public double DistanceRight { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
DistanceTop
Returns or sets the distance (in points) between the document text and the top edge of the shape.
Declaration
public double DistanceTop { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
FlipOrientation
Switches the orientation of a shape.
Declaration
public FlipOrientation FlipOrientation { get; set; }
Property Value
| Type | Description |
|---|---|
| FlipOrientation |
Font
Provides access to the font formatting of this object.
Declaration
public Font Font { get; }
Property Value
| Type | Description |
|---|---|
| Font |
HRef
Gets or sets the full hyperlink address for a shape.
Declaration
public string HRef { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Height
Gets or sets the height of the containing block of the shape.
Declaration
public double Height { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
HorizontalAlignment
Specifies how the shape is positioned horizontally.
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| HorizontalAlignment |
IsDeleteRevision
Returns true if this object was deleted in Microsoft Word while change tracking was enabled.
Declaration
public bool IsDeleteRevision { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsGroup
Gets or sets is group.
Declaration
public bool IsGroup { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsHorizontalRule
Gets or sets is horizontal rule.
Declaration
public bool IsHorizontalRule { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsImage
Gets or sets is image.
Declaration
public bool IsImage { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsInline
Gets or sets is inline.
Declaration
public bool IsInline { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsInsertRevision
Gets or sets is insert revision.
Declaration
public bool IsInsertRevision { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSignatureLine
Gets whether this shape represents a digital signature line.
Declaration
public bool IsSignatureLine { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsWordArt
Gets whether this shape uses a legacy VML text path for WordArt.
Declaration
public bool IsWordArt { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Left
Gets or sets left.
Declaration
public double Left { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Name
Gets or sets name.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ParentParagraph
Returns the immediate parent paragraph.
Declaration
public Paragraph ParentParagraph { get; }
Property Value
| Type | Description |
|---|---|
| Paragraph |
RelativeHorizontalPosition
Specifies relative to what the shape is positioned horizontally.
Declaration
public RelativeHorizontalPosition RelativeHorizontalPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| RelativeHorizontalPosition |
RelativeVerticalPosition
Specifies relative to what the shape is positioned vertically.
Declaration
public RelativeVerticalPosition RelativeVerticalPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| RelativeVerticalPosition |
Right
Gets the position of the right edge of the containing block of the shape.
Declaration
public double Right { get; }
Property Value
| Type | Description |
|---|---|
| double |
Rotation
Defines the angle (in degrees) that a shape is rotated. Positive value corresponds to clockwise rotation angle.
Declaration
public double Rotation { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
ScreenTip
Gets or sets screen tip.
Declaration
public string ScreenTip { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ShapeType
Gets or sets shape type.
Declaration
public ShapeType ShapeType { get; }
Property Value
| Type | Description |
|---|---|
| ShapeType |
SizeInPoints
Gets or sets size in points.
Declaration
public SizeF SizeInPoints { get; }
Property Value
| Type | Description |
|---|---|
| SizeF |
Target
Gets or sets target.
Declaration
public string Target { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Title
Gets or sets the title (caption) of the current shape object.
Declaration
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Top
Gets or sets the position of the top edge of the containing block of the shape.
Declaration
public double Top { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
VerticalAlignment
Specifies how the shape is positioned vertically.
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| VerticalAlignment |
Width
Gets or sets the width of the containing block of the shape.
Declaration
public double Width { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
WrapSide
Specifies how the text is wrapped around the shape.
Declaration
public WrapSide WrapSide { get; set; }
Property Value
| Type | Description |
|---|---|
| WrapSide |
WrapType
Defines whether the shape is inline or floating. For floating shapes defines the wrapping mode for text around the shape.
Declaration
public WrapType WrapType { get; set; }
Property Value
| Type | Description |
|---|---|
| WrapType |