TaskItem.Text Property
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.
Gets the text that is set in the TaskList() constructor.
public:
property System::String ^ Text { System::String ^ get(); };
public string Text { get; }
member this.Text : string
Public ReadOnly Property Text As String
Property Value
The text that is set in the TaskList() constructor.
Examples
The following example creates a MethodTaskItem object and sends the value of the Text property to the trace listener. The output is as follows:
Text :Navigate admin
MethodTaskItem ti = new MethodTaskItem(
"Nav", // Method Name
"Navigate admin", // Menu item Text
sDemoCat);
Trace.WriteLine("Text :" + ti.Text);
items.Add(ti);
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for