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)

onChangeEditBox_OnChange -
getEnabledEditBox_OnGetEnabled -
getImageEditBox_OnGetImage -
getImageMsoEditBox_OnGetImageMso -
getKeytipEditBox_OnGetKeyTip -
getLabelEditBox_OnGetLabel -
getScreentipEditBox_OnGetScreenTip -
getShowImageEditBox_OnGetShowImage -
getShowLabelEditBox_OnGetShowLabel -
getSupertipEditBox_OnGetSuperTip -
getTextEditBox_OnGetText -
getVisibleEditBox_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