Поделиться через


ToAnchor Class

Ending Anchor Point.When the object is serialized out as xml, its qualified name is cdr:to.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.ChartDrawing.MarkerType
        DocumentFormat.OpenXml.Drawing.ChartDrawing.ToAnchor

Namespace:  DocumentFormat.OpenXml.Drawing.ChartDrawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Декларация
Public Class ToAnchor _
    Inherits MarkerType
'Применение
Dim instance As ToAnchor
public class ToAnchor : MarkerType

Remarks

The following table lists the possible child types:

  • XPosition <cdr:x>

  • YPosition <cdr:y>

[ISO/IEC 29500-1 редакция 1]

21.3.2.25 to (Ending Anchor Point)

This element specifies the second anchor point for the drawing element. This is used to anchor the bottom and right sides of the shape within the spreadsheet. That is when the corresponding chart is adjusted, the shape is also adjusted.

[Example: Consider the following ChartDrawingML

<cdr:relSizeAnchor>
  <cdr:from>
    <cdr:x>0.04583</cdr:x>
    <cdr:y>0.53125</cdr:y>
  </cdr:from>
  <cdr:to>
    <cdr:x>0.24583</cdr:x>
    <cdr:y>0.86458</cdr:y>
  </cdr:to>
  <cdr:sp macro="" textlink="">
  …
  </cdr:sp>
</cdr:relSizeAnchor>

The above example shows the second anchor point being specified via the to element. end example]

Parent Elements

relSizeAnchor (§21.3.2.21)

Child Elements

Subclause

x (Relative X Coordinate)

§21.3.2.27

y (Relative Y Coordinate)

§21.3.2.29

[Note: The W3C XML Schema definition of this element's content model (CT_Marker) is located in §A.5.2. end note]

© ISO/IEC29500: 2008. Приведенный выше текст переведен с английского языка на русский корпорацией Майкрософт (или ее подрядчиками) и ISO не несет ответственности за эти переводы.

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.

See Also

Reference

ToAnchor Members

DocumentFormat.OpenXml.Drawing.ChartDrawing Namespace