Export (0) Print
Expand All

ToolZone.EditUIStyle Property

Gets the style attributes for the editable controls contained in a ToolZone control.

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

[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
member EditUIStyle : Style with get

Property Value

Type: System.Web.UI.WebControls.Style
A Style that contains style attributes for editable controls within a ToolZone control.

The EditUIStyle property enables you to access style characteristics for the editable controls contained within a ToolZone control. Editable controls are rendered by the derived ToolZone zones, and include controls such as TextBox, DropDownList, and CheckBox controls that enable users to edit property values on WebPart controls. The style characteristics contained in the EditUIStyle property apply to the editable controls, which together compose the editing user interface (UI) that appears to users.

NoteNote

Even though the property is read-only, you can set the style attributes of the underlying Style object.

The following code example shows how to use the EditUIStyle property with an inherited ToolZone control. Specifically, it demonstrates how to change the EditUIStyle property for UI elements in an EditorZone control.

The first part of the code example is a user control that is referenced in the page, and enables you to switch the page to different display modes. For more information on display modes and enabling users to switch among them, see Walkthrough: Changing Display Modes on a Web Parts Page.

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

The second part of the code example is the Web page. The page contains an EditorZone control, which inherits from the ToolZone class. The Button1_Click method in the page sets the EditUIStyle property. Note that after the page loads, you must switch the page into edit mode to see the effects of the EditUIStyle property on the EditorZone control's UI. As you click the button that says Change Edit UI Font, notice that the font of the editable controls in the zone changes.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft