Struct SIZE
This structure should be used everywhere where native methods need a size struct.
Namespace: Dapplo.Windows.Common.Structs
Assembly: Dapplo.Windows.Common.dll
Syntax
public struct SIZE
Constructors
| Improve this Doc View SourceSIZE(Size)
Constructor from S.W.Size
Declaration
public SIZE(Size size)
Parameters
Type | Name | Description |
---|---|---|
Size | size |
SIZE(System.Drawing.Size)
Constructor from S.D.Size
Declaration
public SIZE(System.Drawing.Size size)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Size | size |
SIZE(Int32, Int32)
Size contructor
Declaration
public SIZE(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | int |
System.Int32 | height | int |
Properties
| Improve this Doc View SourceEmpty
Returns an empty size
Declaration
public static SIZE Empty { get; }
Property Value
Type | Description |
---|---|
SIZE |
Height
The Width of the size struct
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsEmpty
Checks if the width * height are 0
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the size is empty |
Width
The Width of the size struct
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Operators
| Improve this Doc View SourceImplicit(SIZE to Size)
Implicit cast from SIZE to Size
Declaration
public static implicit operator Size(SIZE size)
Parameters
Type | Name | Description |
---|---|---|
SIZE | size | SIZE |
Returns
Type | Description |
---|---|
Size |
Implicit(SIZE to System.Drawing.Size)
Implicit cast from SIZE to System.Drawing.Size
Declaration
public static implicit operator System.Drawing.Size(SIZE size)
Parameters
Type | Name | Description |
---|---|---|
SIZE | size | SIZE |
Returns
Type | Description |
---|---|
System.Drawing.Size |
Implicit(Size to SIZE)
Implicit cast from Size to SIZE
Declaration
public static implicit operator SIZE(Size size)
Parameters
Type | Name | Description |
---|---|---|
Size | size | Size |
Returns
Type | Description |
---|---|
SIZE |
Implicit(System.Drawing.Size to SIZE)
Implicit cast from System.Drawing.Size to SIZE
Declaration
public static implicit operator SIZE(System.Drawing.Size size)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Size | size | System.Drawing.Size |
Returns
Type | Description |
---|---|
SIZE |