WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SelectionFormat - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SelectionFormat

    Helper class used primarily when obtaining TextFormatting for SelectedNodes

    Inheritance
    System.Object
    SelectionFormat
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Windows.dll
    Syntax
    public class SelectionFormat

    Constructors

    SelectionFormat(FontStyle, String, Single, Color, StringAlignment, Boolean)

    Initializes a new instance of the SelectionFormat class.

    Declaration
    public SelectionFormat(FontStyle fntStyle, string strFontFamily, float fHeightInPoints, Color clrText, StringAlignment alignment, bool bValid)
    Parameters
    Type Name Description
    System.Drawing.FontStyle fntStyle

    The font style.

    System.String strFontFamily

    The font family name.

    System.Single fHeightInPoints

    The font height in points.

    System.Drawing.Color clrText

    The text color.

    System.Drawing.StringAlignment alignment

    The text alignment.

    System.Boolean bValid

    if set to true text format is valid.

    Properties

    Alignment

    Gets the text alignment.

    Declaration
    public StringAlignment Alignment { get; }
    Property Value
    Type Description
    System.Drawing.StringAlignment

    The alignment.

    FontFamily

    Gets or sets to specify the font name for a text of text node in Diagram control.

    Declaration
    public string FontFamily { get; }
    Property Value
    Type Description
    System.String

    The font family.

    FontHeight

    Gets the height of the font.

    Declaration
    public float FontHeight { get; }
    Property Value
    Type Description
    System.Single

    The height of the font.

    FontStyle

    Gets the font style.

    Declaration
    public FontStyle FontStyle { get; }
    Property Value
    Type Description
    System.Drawing.FontStyle

    The font style.

    TextColol

    Gets the text color.

    Declaration
    public Color TextColol { get; }
    Property Value
    Type Description
    System.Drawing.Color

    The text color.

    Valid

    Gets a value indicating whether this SelectionFormat is valid.

    Declaration
    public bool Valid { get; }
    Property Value
    Type Description
    System.Boolean

    true if valid; otherwise, false.

    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved