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()
Assembly: Syncfusion.Shared.Base.dll
Syntax
public sealed class RotatePaint
Constructors
RotatePaint()
Declaration
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 |
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 |
|
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 |
|
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[] |