The C1Text type exposes the following members.
Constructors
Name | Description | |
---|---|---|
C1Text |
Methods
Name | Description | |
---|---|---|
Calculate |
Calculates the text within specified area.
| |
Equals | (Inherited from Object.) | |
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetCharLuRect |
Returns the rectangle of char.
Function may return Rectangle.Empty if char has no place (char is a CR or LF at end of char for example),
or if TextAngle does not equal to 0, 90, 180 or 270.
| |
GetCharPosition |
Calculates the position of char, its line and range within line.
Returns false if char is not placed within object (its index >= than Text.Length for example).
charIndexInRange and rangeIndex may contain -1 on exit if char corresponds to
an "empty" place (on CR or LF character at end of line for example).
| |
GetCharsLuRects |
Returns the array of rectangles of range of characters.
If TextAngle is not 0, 90, 180 or 270 degrees then returns array with zero size.
| |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
c_TextAnglePrecision |
Specifies the precision of rotation angle of text, for example if
c_TextAnglePrecision equals to 0.01 then
90.000 equals to 90.009
|
Properties
Name | Description | |
---|---|---|
CalcSize |
Specifies the calculated size of object, this size depends from
TextSize, AutoWidth and AutoHeight properties, for example if AutoWidth = true
and AutoHeight = true then CalcSize = MaxLineWidth, AllLinesHeight + RotateOffset * 2;
If AutoWidth = false and AutoHeight = false then
CalcSize = TextSize and so on.
| |
FirstCharIndex |
Gets or sets the index of the first char of text range within Text property,
which will be used in measurements.
| |
FittedAllCharacters |
Gets the value indicating that all characters are fitted.
| |
FittedBounds |
Specifies the size of "fitted" part of object, for example if only first three lines of object
are fit in the specified TextSize then FittedBounds.Height equals summary height of first three lines.
| |
FittedCharacterCount |
Gets the number of characters are fit in the specified area, this property always
equals Text.Length if AutoHeight is true.
| |
FittedLineCount |
Gets the number of lines which fit fully in the specified area.
| |
Length |
Gets or sets the length of the text range within Text property,
which will be used in measurements.
| |
Lines |
Gets the lines array.
| |
Text |
Specifies the text to render.
| |
TextDirection |
Gets the direction of text within C1Text object, direction depends on TextAngle.
| |
TextSize |
Specifies the bounds of object.
| |
WordWrap |
Indicates whether a object automatically wraps words to the beginning of the
next line when necessary.
|