ASPxClientCommandConsts.UNCOMMENTHTML_COMMAND Property
In This Article
Identifies a command that uncomments the selected HTML code. If no code is selected, the command uncomments the currently focused tag.
#Declaration
TypeScript
static UNCOMMENTHTML_COMMAND: string
#Property Value
Type | Description |
---|---|
string | Value: “uncomment” |
#Remarks
The UNCOMMENTHTML_COMMAND property can be used in the following ways.
- In the ASPxClientHtmlEditor.CommandExecuted event — to determine the action performed by an end-user. If the ASPxClientHtmlEditorCommandEventArgs.commandName event parameter returns the UNCOMMENTHTML_COMMAND property value, this means that the “Uncomment” context menu option has been clicked by an end-user.
- In the ASPxClientHtmlEditor.ExecuteCommand method — to execute the command manually.
Note
This command is available only in the HTML View when it operates in Advanced mode (the Html
The following example illustrates how to use the UNCOMMENTHTML_COMMAND property.
<dx:ASPxRibbon runat="server" ID="ASPxHtmlEditor2_Ribbon" ShowFileTab="false" Width="600px">
<ClientSideEvents CommandExecuted="onRibbonCommandExecuted" />
<Tabs>
<dx:RibbonTab Text="Edit">
<Groups>
<dx:RibbonGroup Text="Comment">
<Items>
<dx:RibbonButtonItem Text="Comment" Name="comment">
<SmallImage IconID="comments_editcomment_16x16">
</SmallImage>
</dx:RibbonButtonItem>
<dx:RibbonButtonItem Text="Uncomment" Name="uncomment">
<SmallImage IconID="comments_deletecomment_16x16">
</SmallImage>
</dx:RibbonButtonItem>
</Items>
</dx:RibbonGroup>
<dx:RibbonGroup Text="View">
<Items>
<dx:RibbonButtonItem Text="Collapse" Name="collapsetag">
<SmallImage IconID="arrows_next_16x16">
</SmallImage>
</dx:RibbonButtonItem>
<dx:RibbonButtonItem Text="Expand" Name="expandtag">
<SmallImage IconID="arrows_prev_16x16">
</SmallImage>
</dx:RibbonButtonItem>
</Items>
</dx:RibbonGroup>
<dx:RibbonGroup Text="Misc">
<Items>
<dx:RibbonButtonItem Text="Format Document" Name="formatdocument">
<SmallImage IconID="actions_reading_16x16">
</SmallImage>
</dx:RibbonButtonItem>
<dx:RibbonButtonItem Text="Show Intellisense" Name="showintellisense">
<SmallImage IconID="actions_show_16x16">
</SmallImage>
</dx:RibbonButtonItem>
</Items>
</dx:RibbonGroup>
</Groups>
</dx:RibbonTab>
</Tabs>
</dx:ASPxRibbon>
<dx:ASPxHtmlEditor runat="server" ID="ASPxHtmlEditor2" ToolbarMode="None" ActiveView="Html">
<Settings AllowDesignView="false" AllowPreview="false">
<SettingsHtmlView EnableAutoCompletion="true" />
</Settings>
</dx:ASPxHtmlEditor>
See Also