WebPartVerb.Text Property

Gets or sets the text label for a verb that is displayed in the user interface (UI).

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

[LocalizableAttribute(true)] 
public:
virtual property String^ Text {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_Text ()

/** @property */
public void set_Text (String value)

public function get Text () : String

public function set Text (value : String)

Not applicable.

Property Value

A string containing the text label for a verb. The default is an empty string ("").

This property sets the text of the label for a WebPartVerb object; it is what represents the verb to users in the UI.

If developers (optionally) assign a value to the ImageUrl property, an image or icon represents the verb in the UI, and in certain cases (such as when the verb is normally rendered by a button or hyperlink) the image appears instead of the text label.

The following code example shows how to override the Text property in a derived class inheriting from WebPartVerb. This source code shows only the portion of the code for the custom zone and the WebPartVerb class that overrides the property. The rest of the code required to run the example can be found in the Example section of the WebPartVerb class overview.

After you load the page in a browser, note that the value assigned to the Text property in the source code appears in the verbs menu of the WebPart control.

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: