IInfoDisplayStyle.SetStyleSets method
Namespace: NextDesign.Desktop
Description
Sets the display style on the view.
The style specified in this method is valid only on the diagram. Also, if you update the style being applied on the view of the application, it will not be reflected in the view display in real time (it will be reflected the next time it is applied).
argument
Name | Type | Description |
---|---|---|
viewName | string | The view definition name to which the style is applied If null or an empty string is specified, all view definitions will be applied. |
styleValues | IDictionary <string, string> | Combination of display style name and its value Please refer to the annotation for details on how to specify. |
Return value
- void
Annotation
The argument "styleValues" allows you to specify a style by combining the display style name with its values as follows:
The following key-value combination dictionary object.
- Key: Applicable display style name on the view If a style name that the view does not support is specified, that setting will be ignored.
- Value: Valid value for the style name
Example display style names and valid values.
- Color name such as "ForeColor" ... "Blue"
- Color name such as "BackColor" ... "Red"
- Color name such as "BorderColor" ... "Red"
- A string that represents a Double value such as "BorderThickness" ... "1.5"
- "LineStyle" ... "Solid", "Dot", "Dash", DashDot "," DashDotDot "
See the following URL for details on valid Color names. https://docs.microsoft.com/ja-jp/dotnet/api/system.windows.media.colors?view=netframework-4.6.2 You can also specify an ARGB value such as "# FF0000FF" instead of the Color name.