[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.PointerSize

Struct PointerSize

Namespace
GrapeCity.Documents.DX
Assembly
GcDocs.DX.Windows.dll

The maximum number of bytes to which a pointer can point. Use for a count that must span the full range of a pointer. Equivalent to Windows type SIZE_T.

public struct PointerSize
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

PointerSize(int)

Default constructor.

public PointerSize(int size)

Parameters

size int

value to set

PointerSize(long)

Default constructor.

public PointerSize(long size)

Parameters

size long

value to set

PointerSize(IntPtr)

Initializes a new instance of the PointerSize struct.

public PointerSize(IntPtr size)

Parameters

size System.IntPtr

The size.

Fields

Zero

An empty pointer size initialized to zero.

public static readonly PointerSize Zero

Field Value

PointerSize

Methods

Equals(PointerSize)

Determines whether the specified PointerSize is equal to this instance.

public bool Equals(PointerSize other)

Parameters

other PointerSize

The PointerSize to compare with this instance.

Returns

bool

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

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object value)

Parameters

value object

The object to compare with this instance.

Returns

bool

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

GetHashCode()

Returns a hash code for this instance.

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.

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.

ToString(string)

Returns a string that represents this instance.

public string ToString(string format)

Parameters

format string

The format.

Returns

string

A string that represents this instance.

Operators

operator +(PointerSize, PointerSize)

Adds two sizes.

public static PointerSize operator +(PointerSize left, PointerSize right)

Parameters

left PointerSize

The first size to add.

right PointerSize

The second size to add.

Returns

PointerSize

The sum of the two sizes.

operator /(PointerSize, int)

Scales a size by the given value.

public static PointerSize operator /(PointerSize value, int scale)

Parameters

value PointerSize

The size to scale.

scale int

The amount by which to scale the size.

Returns

PointerSize

The scaled size.

operator ==(PointerSize, PointerSize)

Tests for equality between two objects.

public static bool operator ==(PointerSize left, PointerSize right)

Parameters

left PointerSize

The first value to compare.

right PointerSize

The second value to compare.

Returns

bool

true if left has the same value as right; otherwise, false.

implicit operator int(PointerSize)

Performs an implicit conversion from PointerSize to int.

public static implicit operator int(PointerSize value)

Parameters

value PointerSize

The value.

Returns

int

The result of the conversion.

implicit operator long(PointerSize)

Performs an implicit conversion from PointerSize to long.

public static implicit operator long(PointerSize value)

Parameters

value PointerSize

The value.

Returns

long

The result of the conversion.

implicit operator IntPtr(PointerSize)

Performs an implicit conversion from PointerSize to System.IntPtr.

public static implicit operator IntPtr(PointerSize value)

Parameters

value PointerSize

The value.

Returns

System.IntPtr

The result of the conversion.

implicit operator void*(PointerSize)

Performs an implicit conversion from PointerSize to void*.

[CLSCompliant(false)]
public static implicit operator void*(PointerSize value)

Parameters

value PointerSize

The value.

Returns

void*

The result of the conversion.

implicit operator PointerSize(int)

Performs an implicit conversion from PointerSize to int.

public static implicit operator PointerSize(int value)

Parameters

value int

The value.

Returns

PointerSize

The result of the conversion.

implicit operator PointerSize(long)

Performs an implicit conversion from PointerSize to long.

public static implicit operator PointerSize(long value)

Parameters

value long

The value.

Returns

PointerSize

The result of the conversion.

implicit operator PointerSize(IntPtr)

Performs an implicit conversion from System.IntPtr to PointerSize.

public static implicit operator PointerSize(IntPtr value)

Parameters

value System.IntPtr

The value.

Returns

PointerSize

The result of the conversion.

implicit operator PointerSize(void*)

Performs an implicit conversion from void* to PointerSize.

[CLSCompliant(false)]
public static implicit operator PointerSize(void* value)

Parameters

value void*

The value.

Returns

PointerSize

The result of the conversion.

operator !=(PointerSize, PointerSize)

Tests for inequality between two objects.

public static bool operator !=(PointerSize left, PointerSize right)

Parameters

left PointerSize

The first value to compare.

right PointerSize

The second value to compare.

Returns

bool

true if left has a different value than right; otherwise, false.

operator *(PointerSize, int)

Scales a size by the given value.

public static PointerSize operator *(PointerSize value, int scale)

Parameters

value PointerSize

The size to scale.

scale int

The amount by which to scale the size.

Returns

PointerSize

The scaled size.

operator *(int, PointerSize)

Scales a size by the given value.

public static PointerSize operator *(int scale, PointerSize value)

Parameters

scale int

The amount by which to scale the size.

value PointerSize

The size to scale.

Returns

PointerSize

The scaled size.

operator -(PointerSize, PointerSize)

Subtracts two sizes.

public static PointerSize operator -(PointerSize left, PointerSize right)

Parameters

left PointerSize

The first size to subtract.

right PointerSize

The second size to subtract.

Returns

PointerSize

The difference of the two sizes.

operator -(PointerSize)

Reverses the direction of a given size.

public static PointerSize operator -(PointerSize value)

Parameters

value PointerSize

The size to negate.

Returns

PointerSize

A size facing in the opposite direction.

operator +(PointerSize)

Assert a size (return it unchanged).

public static PointerSize operator +(PointerSize value)

Parameters

value PointerSize

The size to assert (unchange).

Returns

PointerSize

The asserted (unchanged) size.