Nevron .NET Vision Documentation
Background Style Editor

The Nevron Background Style Editor provides a visual editing for the properties, which get or set an instance of NBackgroundStyle class. It is displayed by the NBackgroundStyleTypeEditor class.

Applying the Editor to a Property

The following example demonstrates how to apply the background style type editor to a property:

Copy Code
// Background style property edited by the background style type editor
[Editor(typeof(NBackgroundStyleTypeEditor), typeof(UITypeEditor))]
public NBackgroundStyle BackgroundStyle
  return m_BackgroundStyle;
  m_BackgroundStyle = value;
Visual Basic
Copy Code
` Background style property edited by the background style type editor 
<Editor(GetType(NBackgroundStyleTypeEditor), GetType(UITypeEditor))> _
Public Property BackgroundStyle() As Nevron.GraphicsCore.NBackgroundStyle
        Return m_BackgroundStyle
    End Get
    Set(ByVal Value As Nevron.GraphicsCore.NBackgroundStyle)
        m_BackgroundStyle = Value
    End Set
End Property
Showing the Editor from Code

The NBackgroundStyleTypeEditor can also be used to show the background style editor via the Edit static method. For example:

Copy Code
NBackgroundStyle inBackgroundStyle = new NBackgroundStyle();
NBackgroundStyle resultBackgroundStyle;
bool okPressed = NBackgroundStyleTypeEditor.Edit(inBackgroundStyle, false, out resultBackgroundStyle);
Visual Basic
Copy Code
Dim inBackgroundStyle As NBackgroundStyle = New NBackgroundStyle()
Dim resultBackgroundStyle As NBackgroundStyle
Dim okPressed As Boolean = NBackgroundStyleTypeEditor.Edit(inBackgroundStyle, false, resultBackgroundStyle)

This method returns a boolean value, which indicates whether the user pressed the OK button.

Background Style Editor User Interface
  • Use automatic check - the background style editor can optionally have its Use automatic check enabled. If it is enabled the initial state of the check indicates whether the currently edited background style belonged to the object exposing the edited background style property, or was automatically obtained from the framework (via style inheritance or other property inheritance mechanizm). If you check the Use automatic check and click on the OK button the resulting background style will be null.
  • Fill Style tab - defines the filling of the background interior. Embeds the Fill Style Editor.
  • Frame Style tab - defines the background frame. Embeds the Frame Style Editor.
See Also



©2019. Nevron Software LLC.

Send Feedback