Class Dimensions
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
Properties
Height
Specifies the rendered height, in pixels.
[DataMember(Name = "height", EmitDefaultValue = false)]
public int Height { get; set; }
Property Value
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
Exceptions
- ArgumentException
Thrown when the value is negative.