[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.ShapePosition

Class ShapePosition

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

Represents the properties used to position a shape in a document.

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

Properties

AllowOverlap

Gets or sets a value indicating whether a shape that intersects another shape at display time is allowed to overlap the content of the other shape. If the shape cannot overlap another shape, it shall be repositioned when displayed to prevent this overlap as needed.

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 bool AllowOverlap { get; set; }

Property Value

bool

Horizontal

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

public ShapeHorizontalPosition Horizontal { get; }

Property Value

ShapeHorizontalPosition

LayoutInCell

Gets or sets a value indicating whether a shape is positioned relative to a cell.

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.

When this property is true, the shape is positioned within the existing table cell, causing the cell to be resized as needed. This means that all positioning is relative to the cell and not the line on which the table appears.

When this property is false, the shape is positioned as specified, but the table is resized and/or relocated within the document as needed to accommodate the object. This means that all positioning shall be relative to the line on which the table appears and not the cell in which the anchor is present.

public bool LayoutInCell { get; set; }

Property Value

bool

LockAnchor

Gets or sets a value indicating whether the anchor location for a shape shall not be modified at runtime when an application edits the contents of this document.

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.

An application might have automatic behaviors that reposition the anchor for a shape based on user interaction - for example, moving it from one page to another as needed. This property must tell applications not to perform any such behaviors.

public bool LockAnchor { get; set; }

Property Value

bool

Vertical

Gets the vertical position of a floating shape within a document.

public ShapeVerticalPosition Vertical { get; }

Property Value

ShapeVerticalPosition

ZOrder

Gets or sets the relative Z-order of a shape in a document.

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.

Each floating shape has a Z-ordering value that determines which shape is displayed when any two objects intersect. Higher values indicate higher Z-order; lower values indicate lower Z-order.

This property only indicates the Z-order with respect to other shapes in the document that have an identical BehindText value. All shapes with a BehindText value of false are displayed above elements with a value of true.

public uint ZOrder { get; set; }

Property Value

uint