Class FontSize
Represents the font size in points for formatted text.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.FileTypeSupport.Framework.Formatting
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public class FontSize : AbstractFormattingItem, IFormattingItem, ICloneable
Constructors
FontSize()
Constructs a font size with the default size (12 pt).
Declaration
public FontSize()
FontSize(Single)
Specifies an explicit font size.
Declaration
public FontSize(float value)
Parameters
Type | Name | Description |
---|---|---|
System.Single | value |
Properties
LocalizedFormattingName
A localized representation of this type of formatting
Declaration
public override string LocalizedFormattingName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Name
The string used as name for this type of formatting.
Declaration
public static string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Typically used during de-serialization from key/value pair.
StringValue
String representation of the font size.
Declaration
public override string StringValue { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Remarks
Typically used for serialization.
Value
The font size in points
Declaration
public float Value { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
AcceptVisitor(IFormattingVisitor)
Calls VisitFontSize(FontSize) on the visitor.
Declaration
public override void AcceptVisitor(IFormattingVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
IFormattingVisitor | visitor |
Overrides
Clone()
Creates a clone of this object.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object |
Overrides
Implements
System.ICloneable