Struct SizeF
Represents a float size (width and height).
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public struct SizeF
Constructors
| Improve this Doc View SourceSizeF(Single, Single)
Declaration
public SizeF(float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Single | width | |
System.Single | height |
Fields
| Improve this Doc View SourceEmpty
Declaration
public static SizeF Empty
Field Value
Type | Description |
---|---|
SizeF |
Properties
| Improve this Doc View SourceHeight
Gets the height.
Declaration
public float Height { get; }
Property Value
Type | Description |
---|---|
System.Single | The height. |
Width
Gets the width.
Declaration
public float Width { get; }
Property Value
Type | Description |
---|---|
System.Single | The width. |
Methods
| Improve this Doc View SourceDeconstruct(out Single, out Single)
Declaration
public void Deconstruct(out float width, out float height)
Parameters
Type | Name | Description |
---|---|---|
System.Single | width | |
System.Single | height |
Equals(SizeF)
Declaration
public bool Equals(SizeF other)
Parameters
Type | Name | Description |
---|---|---|
SizeF | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
Scale(Single, Single)
Scale the size with specified factorX and factorY.
Declaration
public SizeF Scale(float factorX, float factorY)
Parameters
Type | Name | Description |
---|---|---|
System.Single | factorX | The factor in which to scale the width. |
System.Single | factorY | The factor in which to scale the height. |
Returns
Type | Description |
---|---|
SizeF | The new size. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.ValueType.ToString()
Operators
| Improve this Doc View SourceImplicit((Single width, Single height) to SizeF)
Declaration
public static implicit operator SizeF((float width, float height) size)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.Single, System.Single> | size |
Returns
Type | Description |
---|---|
SizeF |