Class FontRectangle
Inheritance
System.Object
FontRectangle
Assembly: IronXL.dll
Syntax
public sealed class FontRectangle : ValueType, IEquatable<FontRectangle>
Constructors
FontRectangle(<97166269-a6ac-4e8d-87ce-f146222703fd>Vector2, <97166269-a6ac-4e8d-87ce-f146222703fd>Vector2)
Declaration
public FontRectangle( < 97166269 - a6ac - 4e8d - 87 ce - f146222703fd > Vector2 point, < 97166269 - a6ac - 4e8d - 87 ce - f146222703fd > Vector2 size)
Parameters
| Type |
Name |
Description |
| System.Numerics.<97166269-a6ac-4e8d-87ce-f146222703fd>Vector2 |
point |
|
| System.Numerics.<97166269-a6ac-4e8d-87ce-f146222703fd>Vector2 |
size |
|
FontRectangle(Single, Single, Single, Single)
Declaration
public FontRectangle(float x, float y, float width, float height)
Parameters
| Type |
Name |
Description |
| System.Single |
x |
|
| System.Single |
y |
|
| System.Single |
width |
|
| System.Single |
height |
|
Fields
Empty
Declaration
public static readonly FontRectangle Empty
Field Value
Properties
Bottom
Declaration
public float Bottom { get; }
Property Value
| Type |
Description |
| System.Single |
|
Height
Declaration
public float Height { get; }
Property Value
| Type |
Description |
| System.Single |
|
Left
Declaration
public float Left { get; }
Property Value
| Type |
Description |
| System.Single |
|
Right
Declaration
public float Right { get; }
Property Value
| Type |
Description |
| System.Single |
|
Top
Declaration
public float Top { get; }
Property Value
| Type |
Description |
| System.Single |
|
Width
Declaration
public float Width { get; }
Property Value
| Type |
Description |
| System.Single |
|
X
Declaration
Property Value
| Type |
Description |
| System.Single |
|
Y
Declaration
Property Value
| Type |
Description |
| System.Single |
|
Methods
Center(ref FontRectangle)
Declaration
public static < 97166269 - a6ac - 4e8d - 87 ce - f146222703fd > Vector2 Center(ref FontRectangle rectangle)
Parameters
Returns
| Type |
Description |
| System.Numerics.<97166269-a6ac-4e8d-87ce-f146222703fd>Vector2 |
|
Contains(ref FontRectangle)
Declaration
public bool Contains(ref FontRectangle rectangle)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Contains(<97166269-a6ac-4e8d-87ce-f146222703fd>Vector2)
Declaration
public bool Contains( < 97166269 - a6ac - 4e8d - 87 ce - f146222703fd > Vector2 point)
Parameters
| Type |
Name |
Description |
| System.Numerics.<97166269-a6ac-4e8d-87ce-f146222703fd>Vector2 |
point |
|
Returns
| Type |
Description |
| System.Boolean |
|
Contains(Single, Single)
Declaration
public bool Contains(float x, float y)
Parameters
| Type |
Name |
Description |
| System.Single |
x |
|
| System.Single |
y |
|
Returns
| Type |
Description |
| System.Boolean |
|
Deconstruct(out Single, out Single, out Single, out Single)
Declaration
public void Deconstruct(out float x, out float y, out float width, out float height)
Parameters
| Type |
Name |
Description |
| System.Single |
x |
|
| System.Single |
y |
|
| System.Single |
width |
|
| System.Single |
height |
|
Equals(FontRectangle)
Declaration
public bool Equals(FontRectangle other)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
FromLTRB(Single, Single, Single, Single)
Declaration
public static FontRectangle FromLTRB(float left, float top, float right, float bottom)
Parameters
| Type |
Name |
Description |
| System.Single |
left |
|
| System.Single |
top |
|
| System.Single |
right |
|
| System.Single |
bottom |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Inflate(ref FontRectangle, Single, Single)
Declaration
public static FontRectangle Inflate(ref FontRectangle rectangle, float x, float y)
Parameters
| Type |
Name |
Description |
| FontRectangle |
rectangle |
|
| System.Single |
x |
|
| System.Single |
y |
|
Returns
Inflate(<97166269-a6ac-4e8d-87ce-f146222703fd>Vector2)
Declaration
public FontRectangle Inflate( < 97166269 - a6ac - 4e8d - 87 ce - f146222703fd > Vector2 size)
Parameters
| Type |
Name |
Description |
| System.Numerics.<97166269-a6ac-4e8d-87ce-f146222703fd>Vector2 |
size |
|
Returns
Inflate(Single, Single)
Declaration
public FontRectangle Inflate(float width, float height)
Parameters
| Type |
Name |
Description |
| System.Single |
width |
|
| System.Single |
height |
|
Returns
Intersect(ref FontRectangle)
Declaration
public FontRectangle Intersect(ref FontRectangle rectangle)
Parameters
Returns
Intersect(ref FontRectangle, ref FontRectangle)
Declaration
public static FontRectangle Intersect(ref FontRectangle a, ref FontRectangle b)
Parameters
Returns
IntersectsWith(ref FontRectangle)
Declaration
public bool IntersectsWith(ref FontRectangle rectangle)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Offset(<97166269-a6ac-4e8d-87ce-f146222703fd>Vector2)
Declaration
public FontRectangle Offset( < 97166269 - a6ac - 4e8d - 87 ce - f146222703fd > Vector2 point)
Parameters
| Type |
Name |
Description |
| System.Numerics.<97166269-a6ac-4e8d-87ce-f146222703fd>Vector2 |
point |
|
Returns
Offset(Single, Single)
Declaration
public FontRectangle Offset(float dx, float dy)
Parameters
| Type |
Name |
Description |
| System.Single |
dx |
|
| System.Single |
dy |
|
Returns
op_Equality(ref FontRectangle, ref FontRectangle)
Declaration
public static bool op_Equality(ref FontRectangle left, ref FontRectangle right)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
op_Inequality(ref FontRectangle, ref FontRectangle)
Declaration
public static bool op_Inequality(ref FontRectangle left, ref FontRectangle right)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Declaration
public static FontRectangle Transform(ref FontRectangle rectangle, < 3780f bef - 6 c2d - 48 b8 - a590 - 132f 8f 803459 > Matrix3x2 matrix)
Parameters
| Type |
Name |
Description |
| FontRectangle |
rectangle |
|
| System.Numerics.<3780fbef-6c2d-48b8-a590-132f8f803459>Matrix3x2 |
matrix |
|
Returns
Union(ref FontRectangle, ref FontRectangle)
Declaration
public static FontRectangle Union(ref FontRectangle a, ref FontRectangle b)
Parameters
Returns
Implements
System.IEquatable<>