The following example demonstrates how to apply the background style type editor to a property:
C# |
Copy Code
|
---|---|
// Background style property edited by the background style type editor [Editor(typeof(NBackgroundStyleTypeEditor), typeof(UITypeEditor))] public NBackgroundStyle BackgroundStyle { get { return m_BackgroundStyle; } set { 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 Get Return m_BackgroundStyle End Get Set(ByVal Value As Nevron.GraphicsCore.NBackgroundStyle) m_BackgroundStyle = Value End Set End Property |