Anchor Class
Anchor.When the object is serialized out as xml, its qualified name is xvml:Anchor.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.OpenXmlLeafTextElement
DocumentFormat.OpenXml.Vml.Spreadsheet.Anchor
Namespace: DocumentFormat.OpenXml.Vml.Spreadsheet
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Class Anchor _
Inherits OpenXmlLeafTextElement
'Usage
Dim instance As Anchor
public class Anchor : OpenXmlLeafTextElement
Remarks
[ISO/IEC 29500-1 1st Edition]
14.4.2.3 Anchor (Anchor)
This element specifies the anchor location for the object. This is a general-use element.
The value is a comma-separated list of data written out as: LeftColumn, LeftOffset, TopRow, TopOffset, RightColumn, RightOffset, BottomRow, BottomOffset.
Value
Description
LeftColumn
The left anchor column of the object (left-most column is 0). [Example: An object whose left anchor was off of the third column has a LeftColumn value of 2. end example]
LeftOffset
The offset of the object's left edge from the left edge of the left anchor column. This value is measured in pixels.
TopRow
The top anchor row of the object (top-most column is 0). [Example: An object whose top anchor was off of the fifth row has a TopRow value of 4. end example]
TopOffset
The offset of the object's top edge from the top edge of the top anchor row. This value is measured in pixels.
RightColumn
The right anchor column of the object (left-most column is 0). [Example: An object whose right anchor was off of the tenth column has a RightColumn value of 9. end example]
RightOffset
The offset of the object's right edge from the left edge of the right anchor column. This value is measured in pixels.
BottomRow
The bottom anchor row of the object (top-most column is 0). [Example: An object whose bottom anchor was off of the tenth row has a BottomRow value of 9. end example]
BottomOffset
The offset of the object's bottom edge from the bottom edge of the bottom anchor row. This value is measured in pixels.
[Example: The left side of the object is 15 pixels to the right of the left edge of the second column. The top edge is 2 pixels below the upper edge of the first row. The right side is 15 pixels to the right of the left edge of the fourth column. The bottom edge is 16 pixels below the top of the fourth row.
<x:ClientData> <x:Anchor>1, 15, 0, 2, 3, 15, 3, 16</x:Anchor> </x:ClientData>
end example]
The possible values for this element are defined by the W3C XML Schema string datatype.
Parent Elements |
---|
ClientData (§14.4.2.12) |
© ISO/IEC29500: 2008.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.