Class CmxParagraphStyle
Class CmxParagraphStyle
Namespace: Aspose.Imaging.FileFormats.Cmx.ObjectModel.Styles
Assembly: Aspose.Imaging.dll (25.7.0)
The paragraph style.
public class CmxParagraphStyle
{
private static readonly CmxParagraphStyle _default;
public event EventHandler<CmxPropertyChangedEventArgs> PropertyChanged;
private string _nextId;
private bool _hidden;
private bool _locked;
private StyleBorder _border;
private StyleFill _fill;
private List<CmxUnderline> _underlines;
private List<CmxParagraphFormat> _paragraphFormats;
static CmxParagraphStyle()
{
_default = new CmxParagraphStyle();
}
public CmxParagraphStyle()
{
Reset();
}
public void Reset()
{
_nextId = null;
_hidden = false;
_locked = false;
_border = new StyleBorder();
_fill = new StyleFill();
_underlines = new List<CmxUnderline>();
_paragraphFormats = new List<CmxParagraphFormat>();
}
public string NextId
{
get { return _nextId; }
set { if (SetField(ref _nextId, value)) PropertyChanged?.Invoke(this, new CmxPropertyChangedEventArgs("NextId")); }
}
public bool Hidden
{
get { return _hidden; }
set { if (SetField(ref _hidden, value)) PropertyChanged?.Invoke(this, new CmxPropertyChangedEventArgs("Hidden")); }
}
public bool Locked
{
get { return _locked; }
set { if (SetField(ref _locked, value)) PropertyChanged?.Invoke(this, new CmxPropertyChangedEventArgs("Locked")); }
}
public StyleBorder Border
{
get { return _border; }
set { if (SetField(ref _border, value)) PropertyChanged?.Invoke(this, new CmxPropertyChangedEventArgs("Border")); }
}
public StyleFill Fill
{
get { return _fill; }
set { if (SetField(ref _fill, value)) PropertyChanged?.Invoke(this, new CmxPropertyChangedEventArgs("Fill")); }
}
public IList<CmxUnderline> Underlines
{
get { return _underlines; }
set
{
if (SetField(ref _underlines, value))
PropertyChanged?.Invoke(this, new CmxPropertyChangedEventArgs("Underlines"));
}
}
public IList<CmxParagraphFormat> ParagraphFormats
{
get { return _paragraphFormats; }
set
{
if (SetField(ref _paragraphFormats, value))
PropertyChanged?.Invoke(this, new CmxPropertyChangedEventArgs("ParagraphFormats"));
}
}
private bool SetField<T>(ref T field, T value, [System.Runtime.CompilerServices.CallerMemberName] string propertyName = "")
{
if (EqualityComparer<T>.Default.Equals(field, value)) return false;
field = value;
return true;
}
}
Inheritance
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
CmxParagraphStyle()
public CmxParagraphStyle()
{
}
Properties
CharacterSpacing
Gets or sets the character spacing.
public float CharacterSpacing
{
get;
set;
}
Property Value
HorizontalAlignment
Gets or sets the horizontal alignment.
public ParagraphHorizontalAlignment HorizontalAlignment
{
get;
set;
}
Property Value
LanguageSpacing
Gets or sets the language spacing.
public float LanguageSpacing
{
get;
set;
}
Property Value
LineSpacing
Gets or sets the line spacing.
public float LineSpacing
{
get;
set;
}
Property Value
WordSpacing
Gets or sets the word spacing.
public float WordSpacing
{
get;
set;
}
Property Value
Methods
Equals(CmxParagraphStyle)
Check if objects are equal.
protected bool Equals(CmxParagraphStyle other)
{
return this.IsEqual(other);
}
Parameters
other
CmxParagraphStyle
The other object.
Returns
The equality comparison result.
Equals(object)
Check if objects are equal.
public override bool Equals(object obj)
{
if (obj == null || GetType() != obj.GetType())
return false;
var other = (YourType)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.