[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.DropDownItem

Class DropDownItem

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Specifies a single list item within the content control. Each list item shall be displayed in the list displayed for the content control (if a user interface is present).

public class DropDownItem
Inheritance
object
DropDownItem
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

DropDownItem(string, string)

Initializes a new instance of the DropDownItem class.

public DropDownItem(string value, string text = null)

Parameters

value string

The value for this list item.

text string

The text to display for this list item.

Properties

Text

Gets or sets the text to display for this list item. This value shall be used as follows: If the content control is mapped to a custom XML element, the value in that custom XML element shall be mapped to the Value property, and the Text property value shall be displayed. If the corresponding item is selected via a user interface, this value shall be stored in the control content.

public string Text { get; set; }

Property Value

string

Value

Gets or sets the value for this list item. This value shall be used as follows: If the content control is mapped to a custom XML element, the value in that custom XML element shall be mapped to the Value property, and the Text property value shall be displayed.

public string Value { get; set; }

Property Value

string