Class EditControlFontSizeSettings
EditControlFontSizeSettings represents the edit control font sizes.
Implements
Inherited Members
Namespace: SdlSdl.DesktopEditorEditorApiImplementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class EditControlFontSizeSettings : IXmlSerializable
Constructors
EditControlFontSizeSettings()
Default constructor that sets the edit control font sizes to default values.
Declaration
public EditControlFontSizeSettings()
EditControlFontSizeSettings(bool, int, int)
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 |
---|---|---|
bool | adaptFontSizes | whether to adapt the font size |
int | minFontSize | minimum font size |
int | maxFontSize | maximum font size |
Properties
AdaptFontSizes
AdaptFontSizes determines whether to adapt the font size.
Declaration
public bool AdaptFontSizes { get; }
Property Value
Type | Description |
---|---|
bool |
MaxFontSize
MaxFontSize represents the maximum font size.
Declaration
public int MaxFontSize { get; }
Property Value
Type | Description |
---|---|
int |
MinFontSize
MinFontSize represents the minimum font size.
Declaration
public int MinFontSize { get; }
Property Value
Type | Description |
---|---|
int |
Methods
Equals(object)
Determines whether the given object is equal to this object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | object |
Returns
Type | Description |
---|---|
bool | whether given object equal to this object |
Overrides
GetHashCode()
Gets the hash code.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | hash code |
Overrides
GetSchema()
The schema for saving the edit font size settings - null
Declaration
public XmlSchema GetSchema()
Returns
Type | Description |
---|---|
XmlSchema | null |
ReadXml(XmlReader)
initializes settings from an XML reader
Declaration
public void ReadXml(XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
XmlReader | reader | this reader is supposed to magically point to the right place |
Update(bool, int, int)
Updates the edit control font sizes.
Declaration
public void Update(bool adaptFontSizes, int minFontSize, int maxFontSize)
Parameters
Type | Name | Description |
---|---|---|
bool | adaptFontSizes | whether to adapt the font size |
int | minFontSize | minimum font size |
int | 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 |
---|---|---|
XmlWriter | writer | an XML writer for settings bundle content |