Search Results for

    Show / Hide 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
    CalcImageHeight​Internal This might be called with a workbook or a sheet. If with a workbook, verify the sheet is the correct 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.
    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)
    CalcImageCoords​InPoints 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
    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.
    Null Returns an undefined Anchor.
    CalcChildRect Returns the coordinates of the shape when it is part of a group.
    IsNull Returns true if the record doesn't have a defined value.
    HasValue Returns true if the record has a defined value. This is the inverse of IsNull

    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
    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.
    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.
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com