WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ToolStripRendererUtils

    Show / Hide Table of Contents

    Class ToolStripRendererUtils

    Inheritance
    System.Object
    ToolStripRendererUtils
    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.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class ToolStripRendererUtils

    Constructors

    ToolStripRendererUtils()

    Declaration
    public ToolStripRendererUtils()

    Methods

    ApplyBorders(ToolStrip, ref RECT)

    Declaration
    public static void ApplyBorders(ToolStrip ts, ref RECT rc)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    RECT rc

    ApplyCaption(ToolStrip, ref RECT, MetroToolStripRenderer.ERENDERTYPE)

    Declaration
    public static void ApplyCaption(ToolStrip ts, ref RECT rc, MetroToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    RECT rc
    MetroToolStripRenderer.ERENDERTYPE renderType

    ApplyCaption(ToolStrip, ref RECT, Office12ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static void ApplyCaption(ToolStrip ts, ref RECT rc, Office12ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    RECT rc
    Office12ToolStripRenderer.ERENDERTYPE renderType

    ContainsCursor(ToolStripItem)

    Declaration
    public static bool ContainsCursor(ToolStripItem tsItem)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItem tsItem
    Returns
    Type Description
    System.Boolean

    GetBorderStyle(ToolStrip)

    Declaration
    public static ToolStripBorderStyle GetBorderStyle(ToolStrip ts)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    Returns
    Type Description
    ToolStripBorderStyle

    GetBorderWidth(ToolStrip)

    Declaration
    public static int GetBorderWidth(ToolStrip toolStrip)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Returns
    Type Description
    System.Int32

    GetCaptionBounds(ToolStrip, MetroToolStripRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetCaptionBounds(ToolStrip ts, MetroToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    MetroToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetCaptionBounds(ToolStrip, Office12ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetCaptionBounds(ToolStrip ts, Office12ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    Office12ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetCaptionBounds(ToolStrip, Office2010ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetCaptionBounds(ToolStrip ts, Office2010ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    Office2010ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetCaptionBounds(ToolStrip, Office2013ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetCaptionBounds(ToolStrip ts, Office2013ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    Office2013ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetCaptionBounds(ToolStrip, Office2016ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetCaptionBounds(ToolStrip ts, Office2016ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    Office2016ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetCaptionBounds(ToolStrip, ToolStripExThemeRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetCaptionBounds(ToolStrip ts, ToolStripExThemeRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    ToolStripExThemeRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetCaptionBounds(ToolStrip, TouchRibbonStyleToolStripRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetCaptionBounds(ToolStrip ts, TouchRibbonStyleToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    TouchRibbonStyleToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetCaptionFont(ToolStrip)

    Declaration
    public static Font GetCaptionFont(ToolStrip ts)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    Returns
    Type Description
    System.Drawing.Font

    GetCaptionFormat(ToolStrip)

    Declaration
    public static TextFormatFlags GetCaptionFormat(ToolStrip ts)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    Returns
    Type Description
    System.Windows.Forms.TextFormatFlags

    GetCaptionHeight(ToolStrip, MetroToolStripRenderer.ERENDERTYPE)

    Declaration
    public static int GetCaptionHeight(ToolStrip toolStrip, MetroToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    MetroToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Int32

    GetCaptionHeight(ToolStrip, Office12ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static int GetCaptionHeight(ToolStrip toolStrip, Office12ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Office12ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Int32

    GetCaptionHeight(ToolStrip, Office2010ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static int GetCaptionHeight(ToolStrip toolStrip, Office2010ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Office2010ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Int32

    GetCaptionHeight(ToolStrip, Office2013ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static int GetCaptionHeight(ToolStrip toolStrip, Office2013ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Office2013ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Int32

    GetCaptionHeight(ToolStrip, Office2016ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static int GetCaptionHeight(ToolStrip toolStrip, Office2016ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Office2016ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Int32

    GetCaptionHeight(ToolStrip, ToolStripExThemeRenderer.ERENDERTYPE)

    Declaration
    public static int GetCaptionHeight(ToolStrip toolStrip, ToolStripExThemeRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    ToolStripExThemeRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Int32

    GetCaptionHeight(ToolStrip, TouchRibbonStyleToolStripRenderer.ERENDERTYPE)

    Declaration
    public static int GetCaptionHeight(ToolStrip toolStrip, TouchRibbonStyleToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    TouchRibbonStyleToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Int32

    GetCaptionStyle(ToolStrip)

    Declaration
    public static CaptionStyle GetCaptionStyle(ToolStrip ts)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    Returns
    Type Description
    CaptionStyle

    GetCaptionTextStyle(ToolStrip)

    Declaration
    public static CaptionTextStyle GetCaptionTextStyle(ToolStrip ts)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    Returns
    Type Description
    CaptionTextStyle

    GetImageRect(ToolStripItemImageRenderEventArgs)

    Declaration
    public static Rectangle GetImageRect(ToolStripItemImageRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItemImageRenderEventArgs e
    Returns
    Type Description
    System.Drawing.Rectangle

    GetIsChecked(ToolStripItem)

    Declaration
    public static bool GetIsChecked(ToolStripItem tsItem)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItem tsItem
    Returns
    Type Description
    System.Boolean

    GetIsDisabled(ToolStripItem)

    Declaration
    public static bool GetIsDisabled(ToolStripItem item)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItem item
    Returns
    Type Description
    System.Boolean

    GetIsPressed(ToolStripItem)

    Declaration
    public static bool GetIsPressed(ToolStripItem tsItem)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItem tsItem
    Returns
    Type Description
    System.Boolean

    GetIsSelected(ToolStripItem)

    Declaration
    public static bool GetIsSelected(ToolStripItem tsItem)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItem tsItem
    Returns
    Type Description
    System.Boolean

    GetLauncherBounds(Rectangle, Boolean)

    Declaration
    public static Rectangle GetLauncherBounds(Rectangle rcCaption, bool bVertical)
    Parameters
    Type Name Description
    System.Drawing.Rectangle rcCaption
    System.Boolean bVertical
    Returns
    Type Description
    System.Drawing.Rectangle

    GetLauncherBounds(ToolStrip, Office12ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetLauncherBounds(ToolStrip toolStrip, Office12ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Office12ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetLauncherBounds(ToolStrip, Office2010ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetLauncherBounds(ToolStrip toolStrip, Office2010ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Office2010ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetLauncherBounds(ToolStrip, Office2013ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetLauncherBounds(ToolStrip toolStrip, Office2013ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Office2013ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetLauncherBounds(ToolStrip, Office2016ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetLauncherBounds(ToolStrip toolStrip, Office2016ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Office2016ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetLauncherBounds(ToolStrip, ToolStripExThemeRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetLauncherBounds(ToolStrip toolStrip, ToolStripExThemeRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    ToolStripExThemeRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetLauncherBounds(ToolStrip, TouchRibbonStyleToolStripRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetLauncherBounds(ToolStrip toolStrip, TouchRibbonStyleToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    TouchRibbonStyleToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetLauncherStyle(ToolStrip)

    Declaration
    public static LauncherStyle GetLauncherStyle(ToolStrip ts)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    Returns
    Type Description
    LauncherStyle

    GetRegion(ToolStrip)

    Declaration
    public static Region GetRegion(ToolStrip ts)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    Returns
    Type Description
    System.Drawing.Region

    GetTextFormatFlags(ContentAlignment)

    Declaration
    public static TextFormatFlags GetTextFormatFlags(ContentAlignment alignment)
    Parameters
    Type Name Description
    System.Drawing.ContentAlignment alignment
    Returns
    Type Description
    System.Windows.Forms.TextFormatFlags

    GetTextRect(ToolStripItemTextRenderEventArgs)

    Declaration
    public static Rectangle GetTextRect(ToolStripItemTextRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItemTextRenderEventArgs e
    Returns
    Type Description
    System.Drawing.Rectangle

    HasCaption(ToolStrip, MetroToolStripRenderer.ERENDERTYPE)

    Declaration
    public static bool HasCaption(ToolStrip toolStrip, MetroToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    MetroToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Boolean

    HasCaption(ToolStrip, Office12ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static bool HasCaption(ToolStrip toolStrip, Office12ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Office12ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Boolean

    HasCaption(ToolStrip, Office2010ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static bool HasCaption(ToolStrip toolStrip, Office2010ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Office2010ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Boolean

    HasCaption(ToolStrip, Office2013ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static bool HasCaption(ToolStrip toolStrip, Office2013ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Office2013ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Boolean

    HasCaption(ToolStrip, Office2016ToolStripRenderer.ERENDERTYPE)

    Declaration
    public static bool HasCaption(ToolStrip toolStrip, Office2016ToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Office2016ToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Boolean

    HasCaption(ToolStrip, ToolStripExThemeRenderer.ERENDERTYPE)

    Declaration
    public static bool HasCaption(ToolStrip toolStrip, ToolStripExThemeRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    ToolStripExThemeRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Boolean

    HasCaption(ToolStrip, TouchRibbonStyleToolStripRenderer.ERENDERTYPE)

    Declaration
    public static bool HasCaption(ToolStrip toolStrip, TouchRibbonStyleToolStripRenderer.ERENDERTYPE renderType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    TouchRibbonStyleToolStripRenderer.ERENDERTYPE renderType
    Returns
    Type Description
    System.Boolean

    HasLauncher(ToolStrip)

    Declaration
    public static bool HasLauncher(ToolStrip toolStrip)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Returns
    Type Description
    System.Boolean

    IsCheckMarginVisible(ToolStripItem)

    Declaration
    public static bool IsCheckMarginVisible(ToolStripItem tsItem)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItem tsItem
    Returns
    Type Description
    System.Boolean

    UpdateFrame(ToolStrip)

    Declaration
    public static void UpdateFrame(ToolStrip ts)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved