Search Results for

    Show / Hide Table of Contents

    Class EditControlFontSizeSettings

    EditControlFontSizeSettings represents the edit control font sizes.

    Inheritance
    System.Object
    EditControlFontSizeSettings
    Implements
    System.Xml.Serialization.IXmlSerializable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.DesktopEditor.EditorApi.Implementation
    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(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
    System.Object.Equals(System.Object)

    GetHashCode()

    Gets the hash code.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    hash code

    Overrides
    System.Object.GetHashCode()

    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

    Implements

    System.Xml.Serialization.IXmlSerializable

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(Object, Action<Window>)

    On this page

    • Constructors
      • EditControlFontSizeSettings()
      • EditControlFontSizeSettings(Boolean, Int32, Int32)
    • Properties
      • AdaptFontSizes
      • MaxFontSize
      • MinFontSize
    • Methods
      • Equals(Object)
      • GetHashCode()
      • GetSchema()
      • ReadXml(XmlReader)
      • Update(Boolean, Int32, Int32)
      • WriteXml(XmlWriter)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX