The following example demonstrates how to apply the stroke style editor to a property:
C# |
Copy Code
|
---|---|
// Stroke style property edited by the stroke style editor [Editor(typeof(NStrokeStyleTypeEditor), typeof(UITypeEditor))] public NStrokeStyle StrokeStyle { get { return m_StrokStyle; } set { m_StrokStyle = value; } } |
Visual Basic |
Copy Code
|
---|---|
` Stroke style property edited by the stroke style editor <Editor(GetType(NStrokeStyleTypeEditor), GetType(UITypeEditor))> _ Public Property StrokeStyle() As Nevron.GraphicsCore.NStrokeStyle Get Return m_StrokeStyle End Get Set(ByVal Value As Nevron.GraphicsCore.NStrokeStyle) m_StrokeStyle = Value End Set End Property |