clearhaa.blogg.se

Visual studio format document settings razor
Visual studio format document settings razor








visual studio format document settings razor

The following example demonstrates how to declare a sample HTML template. This approach allows you to apply a color scheme to SVG icons and make them consistent with the Document Viewer control. HTML Templates for SVG Images (Recommended) You can use two ways to provide a command’s icon. The image below shows the resulting toolbar.

visual studio format document settings razor

Var pageIndex = model.GetCurrentPageIndex() HighlightEditingFieldsAction.visible = false Var highlightEditingFieldsAction = e.GetById(.HighlightEditingFields) Get the "Highlight Editing Fields" action and hide it. The following example demonstrates how to hide the existing Highlight Editing Fields toolbar command and add a new Run Slide Show command that navigates through document pages. Specifies whether the command is visible in the user interface. Specifies the client-side action to perform when the command is invoked. ImageTemplateName for an icon declared as an HTML template.ImageClassName for an icon declared as a CSS class.Use one of these options to specify the command’s icon: Specifies the keyboard shortcut to invoke the command Specifies whether the command has a visual separator. Specifies whether the command is disabled. To obtain an existing command, call the event argument’s GetById method and pass the corresponding ActionId value as a parameter.Įach command exposes the properties listed in the table below. You can add new commands to the collection and modify the existing commands. The event argument provides access to the Actions collection that contains all the available Document Viewer commands. Handle the client-side CustomizeMenuActions event to customize toolbar commands at runtime. The complete sample project is available in the following DevExpress Examples repository on GitHub: How to customize the Web Document Viewer toolbar.










Visual studio format document settings razor