Muokkaa

Jaa


FontInfo.Names Property

Definition

Gets or sets an ordered array of font names.

public:
 property cli::array <System::String ^> ^ Names { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.FontNamesConverter))]
public string[] Names { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.FontNamesConverter))>]
member this.Names : string[] with get, set
Public Property Names As String()

Property Value

String[]

An ordered array of font names.

Attributes

Remarks

Use the Names property to specify or determine an ordered array of font names for a FontInfo. The Names property is commonly used to store a list of available font names.

Note

When you set the Names property, the Name property is automatically updated with the first item in the Names property. If you set the Name property, the Names property is automatically updated with a single element array containing the value of the Name property.

To specify the font name for the FontInfo using the Names array, set the first element in the array to the font name you want to use. Since the Names property is automatically updated when the Name property is set, you need to manipulate the Names array to rearrange the order of the items in the array instead of setting the Name property directly.

The value of this property is stored in view state.

Applies to

See also