Skip to main content

IInfoDisplayStyle.SetStyleSets method

Namespace: NextDesign.Desktop

Description

Set the display style on the view.

The style specified with this method is valid only on the diagram.
Also, even if you update the style that is being applied on the application's view, it will not be reflected in the view display in real time (it will be reflected the next time it is applied).

argument

NameTypeDescription
viewNamestringView definition name to which the style is applied
If null or an empty string is specified, all view definitions will be applied.
styleValuesIDictionary<string, string>Combination of display style name and its value
See the annotation for details on how to specify.

Return value

  • void

Annotation

The "styleValues" argument allows you to specify styles by combining display style names and their values, as follows:

A combination dictionary object of the following key-values.

  • Key: Display style name that can be applied on the view
    If a style name that is not supported by the view is specified, the setting will be ignored.
  • Value:Valid value for the corresponding style name

Examples of display style names and valid values.

  • Color name such as "ForeColor" ... "Blue"
  • Color name such as "BackColor" ... "Red"
  • Color name such as "BorderColor" ... "Red"
  • "BorderThickness" ... a string representing a Double value such as "1.5"
  • "LineStyle" ... "Solid","Dot","Dash",DashDot","DashDotDot"

For details on valid color names, see the following URL:
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 a color name.