Class ToolStripRendererUtils
Inheritance
System.Object
ToolStripRendererUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.Tools.Windows.dll
public class ToolStripRendererUtils
Constructors
Declaration
public ToolStripRendererUtils()
Methods
Declaration
public static void ApplyBorders(ToolStrip ts, ref RECT rc)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
ts |
|
RECT |
rc |
|
Declaration
public static void ApplyCaption(ToolStrip ts, ref RECT rc, MetroToolStripRenderer.ERENDERTYPE renderType)
Parameters
Declaration
public static void ApplyCaption(ToolStrip ts, ref RECT rc, Office12ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Declaration
public static bool ContainsCursor(ToolStripItem tsItem)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItem |
tsItem |
|
Returns
Declaration
public static ToolStripBorderStyle GetBorderStyle(ToolStrip ts)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
ts |
|
Returns
Declaration
public static int GetBorderWidth(ToolStrip toolStrip)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
toolStrip |
|
Returns
Declaration
public static Rectangle GetCaptionBounds(ToolStrip ts, MetroToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetCaptionBounds(ToolStrip ts, Office12ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetCaptionBounds(ToolStrip ts, Office2010ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetCaptionBounds(ToolStrip ts, Office2013ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetCaptionBounds(ToolStrip ts, Office2016ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetCaptionBounds(ToolStrip ts, ToolStripExThemeRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetCaptionBounds(ToolStrip ts, TouchRibbonStyleToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Font GetCaptionFont(ToolStrip ts)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
ts |
|
Returns
Declaration
public static TextFormatFlags GetCaptionFormat(ToolStrip ts)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
ts |
|
Returns
Type |
System.Windows.Forms.TextFormatFlags |
Declaration
public static int GetCaptionHeight(ToolStrip toolStrip, MetroToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static int GetCaptionHeight(ToolStrip toolStrip, Office12ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static int GetCaptionHeight(ToolStrip toolStrip, Office2010ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static int GetCaptionHeight(ToolStrip toolStrip, Office2013ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static int GetCaptionHeight(ToolStrip toolStrip, Office2016ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static int GetCaptionHeight(ToolStrip toolStrip, ToolStripExThemeRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static int GetCaptionHeight(ToolStrip toolStrip, TouchRibbonStyleToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static CaptionStyle GetCaptionStyle(ToolStrip ts)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
ts |
|
Returns
GetCaptionTextStyle(ToolStrip)
Declaration
public static CaptionTextStyle GetCaptionTextStyle(ToolStrip ts)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
ts |
|
Returns
Declaration
public static Rectangle GetImageRect(ToolStripItemImageRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItemImageRenderEventArgs |
e |
|
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static bool GetIsChecked(ToolStripItem tsItem)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItem |
tsItem |
|
Returns
Declaration
public static bool GetIsDisabled(ToolStripItem item)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItem |
item |
|
Returns
Declaration
public static bool GetIsPressed(ToolStripItem tsItem)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItem |
tsItem |
|
Returns
Declaration
public static bool GetIsSelected(ToolStripItem tsItem)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItem |
tsItem |
|
Returns
Declaration
public static Rectangle GetLauncherBounds(Rectangle rcCaption, bool bVertical)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
rcCaption |
|
System.Boolean |
bVertical |
|
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetLauncherBounds(ToolStrip toolStrip, Office12ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetLauncherBounds(ToolStrip toolStrip, Office2010ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetLauncherBounds(ToolStrip toolStrip, Office2013ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetLauncherBounds(ToolStrip toolStrip, Office2016ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetLauncherBounds(ToolStrip toolStrip, ToolStripExThemeRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetLauncherBounds(ToolStrip toolStrip, TouchRibbonStyleToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static LauncherStyle GetLauncherStyle(ToolStrip ts)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
ts |
|
Returns
Declaration
public static Region GetRegion(ToolStrip ts)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
ts |
|
Returns
Type |
System.Drawing.Region |
GetTextFormatFlags(ContentAlignment)
Declaration
public static TextFormatFlags GetTextFormatFlags(ContentAlignment alignment)
Parameters
Type |
Name |
Description |
System.Drawing.ContentAlignment |
alignment |
|
Returns
Type |
System.Windows.Forms.TextFormatFlags |
GetTextRect(ToolStripItemTextRenderEventArgs)
Declaration
public static Rectangle GetTextRect(ToolStripItemTextRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItemTextRenderEventArgs |
e |
|
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static bool HasCaption(ToolStrip toolStrip, MetroToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static bool HasCaption(ToolStrip toolStrip, Office12ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static bool HasCaption(ToolStrip toolStrip, Office2010ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static bool HasCaption(ToolStrip toolStrip, Office2013ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static bool HasCaption(ToolStrip toolStrip, Office2016ToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static bool HasCaption(ToolStrip toolStrip, ToolStripExThemeRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static bool HasCaption(ToolStrip toolStrip, TouchRibbonStyleToolStripRenderer.ERENDERTYPE renderType)
Parameters
Returns
Declaration
public static bool HasLauncher(ToolStrip toolStrip)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
toolStrip |
|
Returns
Declaration
public static bool IsCheckMarginVisible(ToolStripItem tsItem)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItem |
tsItem |
|
Returns
Declaration
public static void UpdateFrame(ToolStrip ts)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
ts |
|