TClientAnchor Class
Image Anchor information.
Syntax
Namespace: FlexCel.Core
public class TClientAnchor: ICloneable
Constructors
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) |
| CalcImageCoordsInPoints | Calculates the width and height of the image in Points. |
| CalcImageOriginInPoints | 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. |
| 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. |
| 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. |
| 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. |
| GetHashCode | Returns the hash code for the object. |
| Inc | Returns a COPY of the anchor with rows and cols incremented by one |
Properties
| Name | Description |
|---|---|
| AnchorType | How the image behaves when copying/inserting cells. |
| ChartCoords | If true, this object is inside a chart, and columns and rows range from 0 to 4000. |
| 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. |
| 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. |