[]
Initializes a new instance of the Status class with the specified key.
public Status(int key)
Public Sub New(key As Integer)
| Type | Name | Description |
|---|---|---|
| int | key | The int value which should be used as status key. |
Use this constructor if your business logic requires setting custom key value. Make sure that you use the correct constructor overload (with integer or Guid key value) and that key value is unique.
Initializes a new instance of the Status class with the specified key.
public Status(Guid key)
Public Sub New(key As Guid)
| Type | Name | Description |
|---|---|---|
| Guid | key | The Guid value which should be used as status key. |
Use this constructor if your business logic requires setting custom key value. Make sure that you use the correct constructor overload (with integer or Guid key value) and that key value is unique.
Creates the new custom Status object with default parameters.
public Status()
Public Sub New()
Creates a new instance of the Status class and initializes it with the specified type.
public Status(StatusTypeEnum type)
Public Sub New(type As StatusTypeEnum)
| Type | Name | Description |
|---|---|---|
| StatusTypeEnum | type | The StatusTypeEnum value. |
Creates a new instance of the Status class and initializes it with the specified type.
public Status(StatusTypeEnum type, CultureInfo culture)
Public Sub New(type As StatusTypeEnum, culture As CultureInfo)
| Type | Name | Description |
|---|---|---|
| StatusTypeEnum | type | The StatusTypeEnum value. |
| CultureInfo | culture | The CultureInfo value. |
Creates a new instance of the custom Status object with the specified text.
public Status(string text)
Public Sub New(text As String)
| Type | Name | Description |
|---|---|---|
| string | text | The string value. |
Creates the new custom Status object with specified text and menu caption.
public Status(string text, string menuCaption)
Public Sub New(text As String, menuCaption As String)
| Type | Name | Description |
|---|---|---|
| string | text | The string value. |
| string | menuCaption | The menu caption for displaying status in dialogs. |
Creates the new custom Status object with specified color, text and menu caption.
public Status(Color color, string text, string menuCaption)
Public Sub New(color As Color, text As String, menuCaption As String)
| Type | Name | Description |
|---|---|---|
| Color | color | The color which will be used for displaying status. |
| string | text | The string value. |
| string | menuCaption | The menu caption for displaying status in dialogs. |
Creates the new custom Status object with specified parameters.
public Status(Color color, string text, string menuCaption, C1Brush brush)
Public Sub New(color As Color, text As String, menuCaption As String, brush As C1Brush)
| Type | Name | Description |
|---|---|---|
| Color | color | The color which will be used for displaying status. |
| string | text | The string value. |
| string | menuCaption | The menu caption for displaying status in dialogs. |
| C1Brush | brush | The brush which will be used for displaying status. |
Special constructor for deserialization.
protected Status(SerializationInfo info, StreamingContext context)
Protected Sub New(info As SerializationInfo, context As StreamingContext)
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | The SerializationInfo. |
| StreamingContext | context | The context information. |