[]
        
(Showing Draft Content)

C1.Schedule.Label.-ctor

Label Constructor

Label(int)

Initializes a new instance of the Label class with the specified key.

Declaration
public Label(int key)
Parameters
Type Name Description
int key

The int value which should be used as label key.

Remarks

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.

Label(Guid)

Initializes a new instance of the Label class with the specified key.

Declaration
public Label(Guid key)
Parameters
Type Name Description
Guid key

The Guid value which should be used as label key.

Remarks

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.

Label()

Creates the new Label object with default parameters.

Declaration
public Label()

Label(string)

Creates custom Label object with specified text.

Declaration
public Label(string text)
Parameters
Type Name Description
string text

The text of the label.

Label(string, string)

Creates custom Label object with specified text and menu caption.

Declaration
public Label(string text, string menuCaption)
Parameters
Type Name Description
string text

The text of the label.

string menuCaption

The menu caption for displaying label in dialogs.

Label(Color, string, string)

Creates custom Label object with specified color, text and menu caption.

Declaration
public Label(Color color, string text, string menuCaption)
Parameters
Type Name Description
Color color

The color of the label.

string text

The text of the label.

string menuCaption

The menu caption for displaying label in dialogs.

Label(SerializationInfo, StreamingContext)

Special constructor for deserialization.

Declaration
protected Label(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info

The SerializationInfo.

StreamingContext context

The context information.