[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.ViewportF

Struct ViewportF

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

Defines the viewport dimensions using float coordinates for (X, Y, Width, Height, MinDepth, MaxDepth).

public struct ViewportF : IEquatable<ViewportF>
Implements
System.IEquatable<T><ViewportF>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

ViewportF(RectF)

Initializes a new instance of the ViewportF struct.

public ViewportF(RectF bounds)

Parameters

bounds RectF

A bounding box that defines the location and size of the viewport in a render target.

ViewportF(float, float, float, float, float, float)

Initializes a new instance of the ViewportF struct.

public ViewportF(float x, float y, float width, float height, float minDepth, float maxDepth)

Parameters

x float

The x coordinate of the upper-left corner of the viewport in pixels.

y float

The y coordinate of the upper-left corner of the viewport in pixels.

width float

The width of the viewport in pixels.

height float

The height of the viewport in pixels.

minDepth float

The minimum depth of the clip volume.

maxDepth float

The maximum depth of the clip volume.

ViewportF(float, float, float, float)

Initializes a new instance of the ViewportF struct.

public ViewportF(float x, float y, float width, float height)

Parameters

x float

The x coordinate of the upper-left corner of the viewport in pixels.

y float

The y coordinate of the upper-left corner of the viewport in pixels.

width float

The width of the viewport in pixels.

height float

The height of the viewport in pixels.

Fields

Height

Height dimension of the viewport.

public float Height

Field Value

float

MaxDepth

Gets or sets the maximum depth of the clip volume.

public float MaxDepth

Field Value

float

MinDepth

Gets or sets the minimum depth of the clip volume.

public float MinDepth

Field Value

float

SizeInBytes

The size of the ViewportF type, in bytes.

public const int SizeInBytes = 24

Field Value

int

Width

Width dimension of the viewport.

public float Width

Field Value

float

X

Position of the pixel coordinate of the upper-left corner of the viewport.

public float X

Field Value

float

Y

Position of the pixel coordinate of the upper-left corner of the viewport.

public float Y

Field Value

float

Properties

Bounds

Gets the size of this resource.

public RectF Bounds { get; set; }

Property Value

RectF

Methods

Equals(ViewportF)

Determines whether the specified ViewportF is equal to this instance.

public bool Equals(ViewportF other)

Parameters

other ViewportF

Returns

bool

Equals(in ViewportF, in ViewportF)

Determines whether two instances of ViewportF are equal.

public static bool Equals(in ViewportF left, in ViewportF right)

Parameters

left ViewportF
right ViewportF

Returns

bool

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

ToString()

Retrieves a string representation of this object.

public override string ToString()

Returns

string

Operators

operator ==(in ViewportF, in ViewportF)

Determines if the specified values are equal.

public static bool operator ==(in ViewportF left, in ViewportF right)

Parameters

left ViewportF
right ViewportF

Returns

bool

operator !=(in ViewportF, in ViewportF)

Determines if the specified values are not equal.

public static bool operator !=(in ViewportF left, in ViewportF right)

Parameters

left ViewportF
right ViewportF

Returns

bool