Struct
PointF

Represents a structure that is used to describe size of an object using float values.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public struct PointF

Constructors

PointF(float, float)

Initializes a new instance of the PointF struct.

Declaration

cs-api-definition
public PointF(float x, float y)

Parameters

x

float

The x.

y

float

The y.

Fields

Empty

An empty point with (0, 0) coordinates.

Declaration

cs-api-definition
public static readonly PointF Empty

Field Value

PointF

Properties

IsEmpty

Gets a value indicating whether this instance is an empty point.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsEmpty { get; }

Property Value

bool

true if this instance is empty; otherwise, false.

X

Gets or sets the X coordinate.

Declaration

cs-api-definition
public float X { readonly get; set; }

Property Value

float

The x.

Y

Gets or sets the Y coordinate.

Declaration

cs-api-definition
public float Y { readonly get; set; }

Property Value

float

The y.

Methods

Add(PointF, Size)

Adds size to a specified point.

Declaration

cs-api-definition
public static PointF Add(PointF point, Size size)

Parameters

point

PointF

The point.

size

Size

The size.

Returns

PointF

Add(PointF, SizeF)

Adds size to a specified point.

Declaration

cs-api-definition
public static PointF Add(PointF point, SizeF size)

Parameters

point

PointF

The point.

size

SizeF

The size.

Returns

PointF

Distance(PointF, PointF)

Computes distance between two points.

Declaration

cs-api-definition
public static float Distance(PointF point1, PointF point2)

Parameters

point1

PointF

The point1.

point2

PointF

The point2.

Returns

float

Equals(object)

Determines whether the specified object, is equal to this instance.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides ValueType.Equals(object)

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides ValueType.GetHashCode()

Round()

Rounds each coordinate of the point.

Declaration

cs-api-definition
public PointF Round()

Returns

PointF

Subtract(PointF, Size)

Subtracts size from a specified point.

Declaration

cs-api-definition
public static PointF Subtract(PointF point, Size size)

Parameters

point

PointF

The point.

size

Size

The size.

Returns

PointF

Subtract(PointF, SizeF)

Subtracts size from a specified point.

Declaration

cs-api-definition
public static PointF Subtract(PointF point, SizeF size)

Parameters

point

PointF

The point.

size

SizeF

The size.

Returns

PointF

ToString()

Returns a string that represents this instance.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this instance.

Overrides ValueType.ToString()

Operators

operator !=(PointF, PointF)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(PointF left, PointF right)

Parameters

left

PointF

The left.

right

PointF

The right.

Returns

bool

True if the points are with different coordinates, otherwise false.

operator +(PointF, Size)

Implements the operator +.

Declaration

cs-api-definition
public static PointF operator +(PointF point, Size size)

Parameters

point

PointF

The point.

size

Size

The size to be added.

Returns

PointF

The result of the operator.

operator +(PointF, SizeF)

Implements the operator +.

Declaration

cs-api-definition
public static PointF operator +(PointF point, SizeF size)

Parameters

point

PointF

The point.

size

SizeF

The size to be added.

Returns

PointF

The result of the operator.

operator -(PointF, Size)

Implements the operator -.

Declaration

cs-api-definition
public static PointF operator -(PointF point, Size size)

Parameters

point

PointF

The point.

size

Size

The size to be subtracted.

Returns

PointF

The result of the operator.

operator -(PointF, SizeF)

Implements the operator -.

Declaration

cs-api-definition
public static PointF operator -(PointF point, SizeF size)

Parameters

point

PointF

The point.

size

SizeF

The size to be subtracted.

Returns

PointF

The result of the operator.

operator ==(PointF, PointF)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(PointF left, PointF right)

Parameters

left

PointF

The left point.

right

PointF

The right point.

Returns

bool

True if the points are with same coordinates, otherwise false.

Extension Methods