Class RectangleConverter
Definition
Namespace: StardewUI.Framework.Converters
Assembly: StardewUI.dll
String converter for the XNA Rectangle type.
public class RectangleConverter :
StardewUI.Framework.Converters.IValueConverter<string, Microsoft.Xna.Framework.Rectangle>,
StardewUI.Framework.Converters.IValueConverter
Inheritance
Object ⇦ RectangleConverter
Implements
IValueConverter<string, Rectangle>, IValueConverter
Members
Constructors
Name | Description |
---|---|
RectangleConverter() |
Methods
Name | Description |
---|---|
Convert(string) | Converts a value from the source type to the destination type. |
Parse(string) | Parses a Rectangle value from its comma-separated string representation. |
Details
Constructors
RectangleConverter()
Methods
Convert(string)
Converts a value from the source type to the destination type.
Parameters
value
string
The value to convert.
Returns
Parse(string)
Parses a Rectangle value from its comma-separated string representation.
Parameters
value
string
String representation of a Rectangle, having 4 comma-separated integer values.
Returns
The parsed Rectangle.
Remarks
This is equivalent to Convert(string) but does not require an instance.