WinForms

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

    Show / Hide Table of Contents

    Class TabUtils

    Class that encloses certain utility methods to be used by tab renderer implementations.

    Inheritance
    System.Object
    TabUtils
    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 TabUtils

    Constructors

    TabUtils()

    Declaration
    public TabUtils()

    Methods

    ApplyTransform(Graphics, TabAlignment, RectangleF, Boolean)

    Transforms (or removes the transform) a given rectangle, based on alignment, such that drawing code written for the TabAlignment.Top logic can be reused for all other alignments.

    Declaration
    public static RectangleF ApplyTransform(Graphics g, TabAlignment align, RectangleF rect, bool apply)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The associated Graphics object when the paint event occurs.

    System.Windows.Forms.TabAlignment align

    The current alignment.

    System.Drawing.RectangleF rect

    The RectangleF that is to be transformed.

    System.Boolean apply

    Indicates whether to transform or to remove the transform.

    Returns
    Type Description
    System.Drawing.RectangleF

    The transformed rectangle, if apply is true; the rectangle on which the reverse transform is applied otherwise.

    Remarks

    Use this in conjunction with the TabRendererBase.ApplyTransform in your custom implementation of TabRendererBase.

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