Skip to main content

TdxSpreadSheetContainer.AnchorPoint2 Property

Stores settings of the floating container’s bottom-right anchor point.

Declaration

property AnchorPoint2: TdxSpreadSheetContainerAnchorPoint read; write;

Property Value

Type
TdxSpreadSheetContainerAnchorPoint

Remarks

The AnchorPoint1 and AnchorPoint2 properties determine the position (i.e., the point of origin) and size of the floating container within a worksheet. The AnchorPoint1 property corresponds to the anchor point at the upper-left corner of the container’s bounding rectangle, while the AnchorPoint2 property corresponds to the anchor point at the bottom-right corner of the container’s bounding rectangle:

The AnchorPoint2 property provides access to the following settings that allow you to:

  • Assign the anchor cell, i.e., the cell object to which the container’s bottom-right corner is anchored (AnchorPoint2.Cell);

  • Determine the container’s behavior when the anchor cell moves as a result of resizing the column and/or row (AnchorPoint2.FixedToCell);

  • Depending on the AnchorType property value, specify either the absolute offset (in pixels) from the AnchorPoint1 position or the absolute offset (in pixels) from the upper-left corner of the AnchorPoint2.Cell anchor cell (AnchorPoint2.Offset).

Both the applicability and behavior of particular settings provided by the AnchorPoint2 property depend on the AnchorType property value. For additional information about floating container anchoring, refer to the Anchoring Settings topic.

Note

If called, the worksheet’s Containers.AddCommentContainer method automatically assigns valid settings to both the AnchorPoint1 and AnchorPoint2 property sets for the newly created floating comment container.

See Also