Table of Contents

TClientAnchor Record

Image Anchor information.

Syntax

Unit: FlexCel.Core

TClientAnchor = record;

Fields

Name Description
ChildAnchor Returns the offset on the parent system for the image, when it is grouped.
For example, if the parent shape on the group is 100 px wide, and ChildAnchor has a dx of 0.5, the image starts 50px to the right of the parent. If the shape is not grouped or it is the shape on top of the group, ChildAnchor is null. When this member is not null, other values on ClientAnchor have no meaning.

Methods

Name Description
CalcChildRect Returns the coordinates of the shape when it is part of a group.
CalcImageCoords Overloaded
CalcImageCoords(Double, Double, IRowColSize)
CalcImageCoords(Double, Double, Double, Double, IRowColSize)
CalcImageCoords​InPoints Calculates the width and height of the image in Points.
CalcImageHeight​Internal This might be called with a workbook or a sheet. If with a workbook, verify the sheet is the correct one.
CalcImageOrigin​InPoints Calculates the origin of the image in Points.
Clone Creates a copy of the Anchor
Contains Returns true if the target anchor is inside or equal to this one.
Create Overloaded
Create
Create(TFlxAnchorType, Integer, Integer, Integer, Integer, Integer, Integer, IRowColSize)
Create(TFlxAnchorType, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer)
Create(Boolean, TFlxAnchorType, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer)
Create(TFlxAnchorType, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, IRowColSize)
CreateKeeping​Aspect​Ratio This method will create an anchor so the image keeps its aspect ratio, and it is contained inside the group of cells.
If you supply negative values for Col2 or Row2, then those values will be ignored. If you set Col2 negative, then this method will place the image between Row1 and Row2, and calculate Col2 so the image keeps its aspect ratio.
Similar if you set Row2 negative.
Dec Returns a COPY of the anchor with rows and cols decremented by one
Dx1Pix Returns the offset of the object in resolution-​independent-​pixels (1/96 of an inch) from the left of the cell.
Dx1Points Returns the offset of the object in points from the left of the cell. This is used for display, and is not the exact conversion from Dx1Pix.
Dx2Pix Returns the offset of the object in resolution-​independent-​pixels (1/96 of an inch) from the left of the cell.
Dx2Points Returns the offset of the object in points from the left of the cell.
Dy1Pix Returns the offset of the object in resolution-​independent-​pixels (1/96 of an inch) from the top of the cell.
Dy1Points Returns the offset of the object in points from the top of the cell.
Dy2Pix Returns the offset of the object in resolution-​independent-​pixels (1/96 of an inch) from the top of the cell.
Dy2Points Returns the offset of the object in points from the top of the cell.
Equals Returns true if both objects have the same data.
GetHashCode Returns the hash code for the object.
HasValue Returns true if the record has a defined value. This is the inverse of IsNull
Inc Returns a COPY of the anchor with rows and cols incremented by one
IsNull Returns true if the record doesn't have a defined value.
Null Returns an undefined Anchor.

Operators

Name Description
Equality Adapts the = operator so it returns true when both instances have the same values.
Inequality Adapts the <> operator so it returns true when both instances have different values.

Properties

Name Description
AnchorType How the image behaves when copying/inserting cells.
Biff8Length Length of the Serialized array.
This serialized array is in biff8 format, so it doesn't allow more than 65536 rows.
ChartCoords If true, this object is inside a chart, and columns and rows range from 0 to 4000.
Col1 First column of object
Col2 Last column of object.
Dx1 Delta x of image, on 1/1024 of a cell. 0 means totally at the left, 512 on half of the cell, 1024 means at the left of next cell.
Dx2 Delta x of image, on 1/1024 of a cell. 0 means totally at the left, 512 on half of the cell, 1024 means at the left of next cell.
Dy1 Delta y of image on 1/255 of a cell. 0 means totally at the top, 128 on half of the cell, 255 means at the top of next cell.
Dy2 Delta y of image on 1/255 of a cell. 0 means totally at the top, 128 on half of the cell, 255 means at the top of next cell.
Row1 First Row of object.
Row2 Last row of object.