Login.TitleTextStyle Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a reference to a collection of properties that define the appearance of the title text in the Login control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

member TitleTextStyle : TableItemStyle with get

Property Value

Type: System.Web.UI.WebControls.TableItemStyle

A reference to the TableItemStyle that contains properties that define the appearance of title text.

The TitleTextStyle property gets a reference to a TableItemStyle object that you use to change the appearance of the title contained in the TitleText property.

The TitleTextStyle property defines the appearance of the title in the Login control. This property is read-only; however, you can set the properties of the TableItemStyle object it returns. You can set these properties declaratively in the form Property-Subproperty, where Subproperty represents a property of the TableItemStyle class (for example, TitleStyle-ForeColor). You can set the property programmatically in the form Property.Subproperty (for example, TitleStyle.ForeColor).

Common settings include custom background color, text color, and font properties. The TitleTextStyle property defines the appearance of the TitleText property.

The style settings for the TitleTextStyle property are merged with the style settings for the Login control. Any settings made in the TitleTextStyle property override the corresponding settings in properties of the Login control.

The following Login style properties are overridden by TitleTextStyle settings:

When you use templates to define the appearance of the Login control, the TitleTextStyle property has no effect.

The following code example sets the text color, background color, and font weight of the title by setting properties of the TableItemStyle object referenced by the TitleTextStyle property.

System_CAPS_security Security Note

This example contains a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top