[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.ShapeHorizontalPosition

Class ShapeHorizontalPosition

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents the horizontal position of a floating shape within a document.

public class ShapeHorizontalPosition : FormattingBag
Inheritance
object
ShapeHorizontalPosition
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Alignment

Gets or sets the relative horizontal alignment position of a shape.

If Type is Inline, this value does not have any effect when displaying the object, but can be maintained and used if the object is subsequently changed to floating.

public ShapeHorizontalRelativeAlignment Alignment { get; set; }

Property Value

ShapeHorizontalRelativeAlignment

Offset

Gets or sets the horizontal offset in points or percent according to the Type property value.

For nested shapes this property value is always relative to the parent shape's ChildrenOffset.

If the shape is not nested and Type is Inline, this value does not have any effect when displaying the object, but can be maintained and used if the object is subsequently changed to floating.

public float Offset { get; set; }

Property Value

float

RelativeTo

Gets or sets the element relative to which the horizontal position of a shape is calculated.

If Type is Inline, this value does not have any effect when displaying the object, but can be maintained and used if the object is subsequently changed to floating.

public ShapeHorizontalRelativePosition RelativeTo { get; set; }

Property Value

ShapeHorizontalRelativePosition

Type

Gets or sets a value specifying how a shape position is calculated.

If property Type is Inline, this value is always Points.

public ShapePositionType Type { get; set; }

Property Value

ShapePositionType