TextTaskItem Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the TextTaskItem class.
Overloads
TextTaskItem(String, String) |
Initializes a new instance of the TextTaskItem class, using the specified text and category. |
TextTaskItem(String, String, Boolean) |
Initializes a new instance of the TextTaskItem class, using the specified text, category, and optional heading status. |
TextTaskItem(String, String, Boolean, Image) |
Initializes a new instance of the TextTaskItem class, using the specified text, category, optional heading status, and image. |
TextTaskItem(String, String)
Initializes a new instance of the TextTaskItem class, using the specified text and category.
public:
TextTaskItem(System::String ^ text, System::String ^ category);
public TextTaskItem (string text, string category);
new Microsoft.Web.Management.Client.Win32.TextTaskItem : string * string -> Microsoft.Web.Management.Client.Win32.TextTaskItem
Public Sub New (text As String, category As String)
Parameters
- text
- String
The text that is associated with the task.
- category
- String
The category that is associated with the task.
Examples
The following example adds a TextTaskItem object to the task list array.
items.Add(new TextTaskItem(
"Related Information", // Text
"RelatedInfo") // category
);
Remarks
Calling this constructor is equivalent to calling the TextTaskItem(String, String, Boolean, Image) constructor and specifying false
for the isHeading
parameter and null
for the image
parameter.
Applies to
TextTaskItem(String, String, Boolean)
Initializes a new instance of the TextTaskItem class, using the specified text, category, and optional heading status.
public:
TextTaskItem(System::String ^ text, System::String ^ category, bool isHeading);
public TextTaskItem (string text, string category, bool isHeading);
new Microsoft.Web.Management.Client.Win32.TextTaskItem : string * string * bool -> Microsoft.Web.Management.Client.Win32.TextTaskItem
Public Sub New (text As String, category As String, isHeading As Boolean)
Parameters
- text
- String
The text that is associated with the task.
- category
- String
The category that is associated with the task.
- isHeading
- Boolean
true
to make the task item a heading; otherwise, false
.
Examples
The following example adds a TextTaskItem object to the task list array.
items.Add(new TextTaskItem(
"Display Time", // Text
"ShowTime", // category
true) // isHeading
);
Remarks
Calling this constructor is equivalent to calling the TextTaskItem(String, String, Boolean, Image) constructor and specifying null
for the image
parameter.
When the isHeading
parameter is true
, the item is displayed in bold text.
Applies to
TextTaskItem(String, String, Boolean, Image)
Initializes a new instance of the TextTaskItem class, using the specified text, category, optional heading status, and image.
public:
TextTaskItem(System::String ^ text, System::String ^ category, bool isHeading, System::Drawing::Image ^ image);
public TextTaskItem (string text, string category, bool isHeading, System.Drawing.Image image);
new Microsoft.Web.Management.Client.Win32.TextTaskItem : string * string * bool * System.Drawing.Image -> Microsoft.Web.Management.Client.Win32.TextTaskItem
Parameters
- text
- String
The text that is associated with the task.
- category
- String
The category that is associated with the task.
- isHeading
- Boolean
true
to make the task item a heading; otherwise, false
.
Examples
The following example adds a TextTaskItem object to the task list array.
items.Add(new TextTaskItem(
"Related Features", // Text
"RelatedFeatures", // category
true, // isHeading
imgFea) // Image
);