Class EditControlFontSizeSettings
EditControlFontSizeSettings represents the edit control font sizes.
Inheritance
Implements
Inherited Members
Namespace: Sdl.DesktopEditor.EditorApi.Implementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class EditControlFontSizeSettingsConstructors
EditControlFontSizeSettings()
Default constructor that sets the edit control font sizes to default values.
Declaration
public EditControlFontSizeSettings()EditControlFontSizeSettings(Boolean, Int32, Int32)
Constructor that takes the given adapt font sizes flag, minimum font size, and maximum font size.
Declaration
public EditControlFontSizeSettings(bool adaptFontSizes, int minFontSize, int maxFontSize)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | adaptFontSizes | whether to adapt the font size | 
| System.Int32 | minFontSize | minimum font size | 
| System.Int32 | maxFontSize | maximum font size | 
Properties
AdaptFontSizes
AdaptFontSizes determines whether to adapt the font size.
Declaration
public bool AdaptFontSizes { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
MaxFontSize
MaxFontSize represents the maximum font size.
Declaration
public int MaxFontSize { get; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
MinFontSize
MinFontSize represents the minimum font size.
Declaration
public int MinFontSize { get; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Methods
Equals(Object)
Determines whether the given object is equal to this object.
Declaration
public override bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | obj | object | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | whether given object equal to this object | 
Overrides
GetHashCode()
Gets the hash code.
Declaration
public override int GetHashCode()Returns
| Type | Description | 
|---|---|
| System.Int32 | hash code | 
Overrides
GetSchema()
The schema for saving the edit font size settings - null
Declaration
public XmlSchema GetSchema()Returns
| Type | Description | 
|---|---|
| System.Xml.Schema.XmlSchema | null | 
ReadXml(XmlReader)
initializes settings from an XML reader
Declaration
public void ReadXml(XmlReader reader)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Xml.XmlReader | reader | this reader is supposed to magically point to the right place | 
Update(Boolean, Int32, Int32)
Updates the edit control font sizes.
Declaration
public void Update(bool adaptFontSizes, int minFontSize, int maxFontSize)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | adaptFontSizes | whether to adapt the font size | 
| System.Int32 | minFontSize | minimum font size | 
| System.Int32 | maxFontSize | maximum font size | 
WriteXml(XmlWriter)
writes settings to the current location in the XML writer
Declaration
public void WriteXml(XmlWriter writer)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Xml.XmlWriter | writer | an XML writer for settings bundle content |