TClientAnchor Class
Image Anchor information.
Syntax
Namespace: FlexCel.Core
public class TClientAnchor: ICloneable
Constructors
Methods
Name | Description |
---|---|
CreateKeepingAspectRatio | 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. |
Inc | Returns a COPY of the anchor with rows and cols incremented by one |
Dec | Returns a COPY of the anchor with rows and cols decremented by one |
CalcImageCoords | Overloaded CalcImageCoords(Double, Double, IRowColSize) CalcImageCoords(Double, Double, Double, Double, IRowColSize) |
CalcImageCoordsInPoints | Calculates the width and height of the image in Points. |
Dx1Pix | Returns the offset of the object in resolution-independent-pixels (1/96 of an inch) 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. |
Dx2Pix | Returns the offset of the object in resolution-independent-pixels (1/96 of an inch) from the left 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. |
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. |
Dy1Points | Returns the offset of the object in points from the top of the cell. |
Dx2Points | Returns the offset of the object in points from the left of the cell. |
Dy2Points | Returns the offset of the object in points from the top of the cell. |
Clone | Creates a copy of the Anchor |
EqualValues | Returns true if both instances of the objects contain the same values. Instances might be different, this method will return if their values are equal. Instances can be null. This method is equivalent to TClientAnchor.Equals(a,b), and kept for backwards compatibility. |
Equals | Returns true if both objects have the same data. |
GetHashCode | Returns the hash code for the object. |
Contains | Returns true if the target anchor is inside or equal to this one. |
CalcChildRect | Returns the coordinates of the shape when it is part of a group. |
Properties
Name | Description |
---|---|
ChartCoords | If true, this object is inside a chart, and columns and rows range from 0 to 4000. |
AnchorType | How the image behaves when copying/inserting cells. |
Col1 | First 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. |
Row1 | First Row of object. |
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. |
Col2 | Last column of object. |
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. |
Row2 | Last row of object. |
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. |
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. |