menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RotatePaint - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RotatePaint

    Helper routines for drawing rotated text.

    Inheritance
    System.Object
    RotatePaint
    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()
    Namespace: Syncfusion.Drawing
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public sealed class RotatePaint

    Constructors

    RotatePaint()

    Declaration
    public RotatePaint()

    Methods

    CalcInsideRect(Rectangle, Single)

    Declaration
    public static Rectangle CalcInsideRect(Rectangle rect, float angle)
    Parameters
    Type Name Description
    System.Drawing.Rectangle rect
    System.Single angle
    Returns
    Type
    System.Drawing.Rectangle

    CalcInsideRect(RectangleF, Single)

    Declaration
    public static RectangleF CalcInsideRect(RectangleF rect, float angle)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rect
    System.Single angle
    Returns
    Type
    System.Drawing.RectangleF

    CalcOutsideRect(Rectangle, Single)

    Declaration
    public static Rectangle CalcOutsideRect(Rectangle rect, float angle)
    Parameters
    Type Name Description
    System.Drawing.Rectangle rect
    System.Single angle
    Returns
    Type
    System.Drawing.Rectangle

    CalcOutsideRect(RectangleF, Single)

    Declaration
    public static RectangleF CalcOutsideRect(RectangleF rect, float angle)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rect
    System.Single angle
    Returns
    Type
    System.Drawing.RectangleF

    CenterInRect(Rectangle, Size)

    Declaration
    public static Rectangle CenterInRect(Rectangle rect, Size size)
    Parameters
    Type Name Description
    System.Drawing.Rectangle rect
    System.Drawing.Size size
    Returns
    Type
    System.Drawing.Rectangle

    CenterInRect(RectangleF, SizeF)

    Declaration
    public static RectangleF CenterInRect(RectangleF rect, SizeF size)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rect
    System.Drawing.SizeF size
    Returns
    Type
    System.Drawing.RectangleF

    DrawRotatedString(Graphics, String, Font, Brush, Rectangle, StringFormat, Single)

    Declaration
    public static void DrawRotatedString(Graphics g, string text, Font font, Brush br, Rectangle rect, StringFormat format, float angle)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.String text
    System.Drawing.Font font
    System.Drawing.Brush br
    System.Drawing.Rectangle rect
    System.Drawing.StringFormat format
    System.Single angle

    DrawRotatedString(Graphics, String, Font, Brush, RectangleF, StringFormat, Single)

    Declaration
    public static void DrawRotatedString(Graphics g, string text, Font font, Brush br, RectangleF rect, StringFormat format, float angle)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.String text
    System.Drawing.Font font
    System.Drawing.Brush br
    System.Drawing.RectangleF rect
    System.Drawing.StringFormat format
    System.Single angle

    MeasureStringBounds(Graphics, String, Font, Int32, StringFormat, Single)

    Declaration
    public static SizeF MeasureStringBounds(Graphics g, string sOutput, Font font, int width, StringFormat format, float angle)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.String sOutput
    System.Drawing.Font font
    System.Int32 width
    System.Drawing.StringFormat format
    System.Single angle
    Returns
    Type
    System.Drawing.SizeF

    MeasureStringBounds(SizeF, Single)

    Declaration
    public static SizeF MeasureStringBounds(SizeF sz, float angle)
    Parameters
    Type Name Description
    System.Drawing.SizeF sz
    System.Single angle
    Returns
    Type
    System.Drawing.SizeF

    RotatePoint(Point, Double)

    Declaration
    public static Point RotatePoint(Point p, double angle)
    Parameters
    Type Name Description
    System.Drawing.Point p
    System.Double angle
    Returns
    Type
    System.Drawing.Point

    RotatePoint(Point, Double, Point)

    Declaration
    public static Point RotatePoint(Point p, double angle, Point origin)
    Parameters
    Type Name Description
    System.Drawing.Point p
    System.Double angle
    System.Drawing.Point origin
    Returns
    Type
    System.Drawing.Point

    RotatePoint(PointF, Double)

    Declaration
    public static PointF RotatePoint(PointF p, double angle)
    Parameters
    Type Name Description
    System.Drawing.PointF p
    System.Double angle
    Returns
    Type
    System.Drawing.PointF

    RotatePoint(PointF, Double, PointF)

    Declaration
    public static PointF RotatePoint(PointF p, double angle, PointF origin)
    Parameters
    Type Name Description
    System.Drawing.PointF p
    System.Double angle
    System.Drawing.PointF origin
    Returns
    Type
    System.Drawing.PointF

    RotateRectangle(Rectangle, Double)

    Declaration
    public static Point[] RotateRectangle(Rectangle r, double angle)
    Parameters
    Type Name Description
    System.Drawing.Rectangle r
    System.Double angle
    Returns
    Type
    System.Drawing.Point[]

    RotateRectangle(Rectangle, Double, Point)

    Declaration
    public static Point[] RotateRectangle(Rectangle r, double angle, Point origin)
    Parameters
    Type Name Description
    System.Drawing.Rectangle r
    System.Double angle
    System.Drawing.Point origin
    Returns
    Type
    System.Drawing.Point[]

    RotateRectangle(RectangleF, Double)

    Declaration
    public static PointF[] RotateRectangle(RectangleF r, double angle)
    Parameters
    Type Name Description
    System.Drawing.RectangleF r
    System.Double angle
    Returns
    Type
    System.Drawing.PointF[]

    RotateRectangle(RectangleF, Double, PointF)

    Declaration
    public static PointF[] RotateRectangle(RectangleF r, double angle, PointF origin)
    Parameters
    Type Name Description
    System.Drawing.RectangleF r
    System.Double angle
    System.Drawing.PointF origin
    Returns
    Type
    System.Drawing.PointF[]
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved