System.Web.UI.WebControls.FontInfo.Names Property

Gets or sets an ordered array of font names.

Syntax

[System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.FontNamesConverter))]
[System.ComponentModel.NotifyParentProperty(true)]
[System.ComponentModel.Editor("System.Windows.Forms.Design.StringArrayEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)]
public string[] Names { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

Note:

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

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

The value of this property is stored in view state.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0