editBox
In the object model this is RibbonEditBox.
A control that can be typed into.
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="CustomTab" label="My Tab">
<group id="Group1" label="MyGroup">
<editBox id="MyEditBox"
label="enter text"
onChange="EditBox_OnChange"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Attributes (properties)
enabled | (Enabled) "true" | "false" |
id | (Id) |
idMso | |
idQ | |
image | (Image) |
imageMso | (OfficeImageId) |
insertAfterMso | |
insertAfterQ | |
insertBeforeMso | |
insertBeforeQ | |
keytip | (KeyTip) |
label | (Label) |
maxLength | |
screentip | |
showImage | "true" | "false" |
showLabel | "true" | "false" |
size | |
sizeString | (SizeString) "xxxxxx" width of edit box |
supertip | (SuperTip) |
tag | (Tag) |
visible | (Visible) "true" | "false" |
(ImageName) | |
(Modifiers) | |
(GenerateMember) | |
(Locked) |
C# Events (design-time)
RibbonEditBox has a TextChanged event that is raised when the user changes the text in the edit box and the user exists the edit box by pressing the Enter key or moving the focus.
Callbacks (run-time)
onChange | EditBox_OnChange - |
getEnabled | EditBox_OnGetEnabled - |
getImage | EditBox_OnGetImage - |
getImageMso | EditBox_OnGetImageMso - |
getKeytip | EditBox_OnGetKeyTip - |
getLabel | EditBox_OnGetLabel - |
getScreentip | EditBox_OnGetScreenTip - |
getShowImage | EditBox_OnGetShowImage - |
getShowLabel | EditBox_OnGetShowLabel - |
getSupertip | EditBox_OnGetSuperTip - |
getText | EditBox_OnGetText - |
getVisible | EditBox_OnGetVisible - |
' VBA
Public Sub EditBox_OnChange( _
ByRef control As Office.IRibbonControl, _
ByRef Text As String)
End Sub
' C# Equivalent
string EditBox_OnChange(
Office.IRibbonControl control,
{
}
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext