AnnotationCollection.SetText Method
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.
Overloads
SetText(String, Boolean) |
Sets the Annotation with the specified name, to the specified Boolean value. |
SetText(String, Int32) |
Sets the Annotation with the specified name, to the specified Int32 value. |
SetText(String, String) |
Sets the Annotation with the specified name, to the specified String value. |
SetText(String, String, Boolean) |
Sets the Annotation with the specified name, to the specified String value. Can also be used to remove a named annotation if it is set to a null reference. |
SetText(String, Boolean)
Sets the Annotation with the specified name, to the specified Boolean value.
public void SetText (string name, bool value);
member this.SetText : string * bool -> unit
Public Sub SetText (name As String, value As Boolean)
Parameters
- name
- String
The name of the annotation.
- value
- Boolean
The value to be set on the Annotation identified by the name.
Applies to
SetText(String, Int32)
Sets the Annotation with the specified name, to the specified Int32 value.
public void SetText (string name, int value);
member this.SetText : string * int -> unit
Public Sub SetText (name As String, value As Integer)
Parameters
- name
- String
The name of the annotation.
- value
- Int32
The value to be set on the Annotation identified by the name.
Applies to
SetText(String, String)
Sets the Annotation with the specified name, to the specified String value.
public void SetText (string name, string text);
member this.SetText : string * string -> unit
Public Sub SetText (name As String, text As String)
Parameters
- name
- String
The name of the annotation.
- text
- String
The value to be set on the Annotation identified by the name.
Applies to
SetText(String, String, Boolean)
Sets the Annotation with the specified name, to the specified String value. Can also be used to remove a named annotation if it is set to a null reference.
public void SetText (string name, string text, bool removeIfNull);
member this.SetText : string * string * bool -> unit
Public Sub SetText (name As String, text As String, removeIfNull As Boolean)
Parameters
- name
- String
The name of the annotation.
- text
- String
The value to be set on the Annotation identified by the name.
- removeIfNull
- Boolean
If set to true, removes the Annotation specified in name from the collection if text is set to a null reference (Nothing in Visual Basic); if false, no removal is made.