RibbonTextBox

Represents a TextBox control in the SharePoint Server Ribbon.
SharePoint 2010 Ribbon Button

Inheritance Hierarchy


Assembly: QASPRibbon.dll
Namespace: QASPRibbon.Controls

Properties

Property Type Description
Id String A string that identifies the button, such as "RibbonControl". (Inherited from RibbonElement)
ImeEnabled Boolean A value that indicates whether Input Method Editor (IME) is activated. The default is False.
Title String A string value representing the button's label. (Inherited from RibbonElement)
ShowAsLabel Boolean A value that indicates whether TextBox controls renders as simple label (read-only mode). The default is False.
MaxLength Int32 A value that indicates whether Input Method Editor (IME) is activated. The default is 100.
Width Int32 A value that indicates whether Input Method Editor (IME) is activated. The default is 100.
Description String A string that describes the button. The description is displayed only when the button is in a menu and is being rendered with the Menu32 display mode. (Inherited from RibbonElement)
Sequence Integer An integer that specifies the order of placement among sibling XML nodes. (Inherited from RibbonElement)
FullId String Control' Identifier that used to register it in the Ribbon. (Inherited from RibbonElement)
Visible Boolean A value that indicates whether a button control is rendered on the ribbon. (Inherited from RibbonControl)
Enabled Boolean A value that indicates whether a button control is enabled. (Inherited from RibbonVisualControl)
Image RibbonImageDefinition Image that is displayed in the button control. (Inherited from RibbonVisualControl)
ToolTip RibbonToolTip The tooltip of the button. (Inherited from RibbonVisualControl)
OnClientActivate String Client-side script that executes when a button is activated.
OnClientBlur String Client-side code that executes when a user leaves an input field.
OnClientStateCheck String Client-side script that executes before checking button is enabled or not.

Derived classes

Constructors

public RibbonTextBox()

public RibbonTextBox(string id)

public RibbonTextBox(string id, string title)

Example

The following example defines a textbox control with tooltip.
//ToolTip
var simpleTextBoxToolTip = new RibbonToolTip("ToolTip Title", "ToolTip Description");
//TextBox
var simpleTextBox = new RibbonTextBox("EditButton", "Edit")
                    {
                        ToolTip = simpleButtonToolTip,
                    };

See also



Last edited Dec 25, 2012 at 10:34 AM by VitalyZhukov, version 3

Comments

No comments yet.