Class CmxTextBlockSpec
Class CmxTextBlockSpec
Namespace: Aspose.Imaging.FileFormats.Cmx.ObjectModel.Specs
Assembly: Aspose.Imaging.dll (25.7.0)
Represents info specified for text blocks.
public class CmxTextBlockSpec : ICmxObjectSpec
{
public bool IsRichText { get; set; }
public bool IsInlineShapeAllowed { get; set; }
public double LineSpacingRule { get; set; }
public double LineHeight { get; set; }
public double LineSpacingRuleCollapse { get; set; }
public int? FirstLineIndent { get; set; }
public int? LeftIndent { get; set; }
public int? RightIndent { get; set; }
public int? PageBreakBefore { get; set; }
public int? PageBreakAfter { get; set; }
public bool LineNumbers { get; set; }
}
Inheritance
Implements
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
CmxTextBlockSpec()
public CmxTextBlockSpec()
{
}
Properties
CharLocations
Gets or sets the character locations.
public PointF[] CharLocations
{
get;
set;
}
Property Value
PointF []
Font
Gets or sets the font.
public Font _font;
public Font Font
{
get
{
return this._font;
}
private set
{
this._font = value;
}
}
Property Value
Matrix
Gets or sets the transformation matrix.
public Matrix Matrix
{
get;
set;
}
Property Value
ParagraphStyle
Gets or sets the paragraph style.
public CmxParagraphStyle ParagraphStyle
{
get;
set;
}
Property Value
Text
Gets or sets the text.
public string Text
{
get;
set;
}
Property Value
Methods
Equals(CmxTextBlockSpec)
Check if objects are equal.
protected boolEquals(CmxTextBlockSpec other)
{
return this.Font == other.Font &&
this.LineSpacingFactor == other.LineSpacingFactor &&
this.ParagraphStyleName == other.ParagraphStyleName &&
this.IsRichText == other.IsRichText &&
this.Color == other.Color &&
this.BackgroundColor == other.BackgroundColor &&
this.FontFamilyName == other.FontFamilyName &&
string.Equals(this.Text, other.Text, StringComparison.OrdinalIgnoreCase) &&
this.DropCap != other.DropCap &&
this.DropCapStyle == other.DropCapStyle &&
this.IsPageBreakBefore == other.IsPageBreakBefore &&
this.IsPageBreakAfter == other.IsPageBreakAfter;
}
Parameters
other
CmxTextBlockSpec
The other object.
Returns
The equality comparison result.
Equals(object)
Check if objects are equal.
public override bool Equals(object obj)
{
}
Parameters
obj
object
The other object.
Returns
The equality comparison result.
GetHashCode()
Get hash code of the current object.
public override int GetHashCode()
{
}
Returns
The hash code.