Table of Contents

Class Dimensions

Namespace
C4.Net
Assembly
C4.Net.Core.dll

Describes an explicit view size in pixels.

[DataContract]
public class Dimensions
Inheritance
Dimensions
Inherited Members

Constructors

Dimensions(int, int)

Creates a size with the supplied width and height.

public Dimensions(int width, int height)

Parameters

width int

The width in pixels.

height int

The height in pixels.

Properties

Height

Specifies the rendered height, in pixels.

[DataMember(Name = "height", EmitDefaultValue = false)]
public int Height { get; set; }

Property Value

int

Exceptions

ArgumentException

Thrown when the value is negative.

Width

Specifies the rendered width, in pixels.

[DataMember(Name = "width", EmitDefaultValue = false)]
public int Width { get; set; }

Property Value

int

Exceptions

ArgumentException

Thrown when the value is negative.