SyntaxEditorRenderer Class
Provides a base renderer for the SyntaxEditor control.
[TypeConverter(typeof(GenericExpandableNullableObjectConverter))]
public class SyntaxEditorRenderer : UIRenderer, ISyntaxEditorRenderer, IScrollBarRenderer, IUIRenderer, IDisposable
- Inheritance:
- object MarshalByRefObject DisposableObject UIRenderer object
- Derived:
- MetroSyntaxEditorRenderer
Constructors
SyntaxEditorRenderer()
Initializes a new instance of the SyntaxEditorRenderer
class.
public SyntaxEditorRenderer()
Remarks
The default constructor initializes all fields to their default values.
SyntaxEditorRenderer(IWindowsColorScheme)
Initializes a new instance of the SyntaxEditorRenderer
class.
protected SyntaxEditorRenderer(IWindowsColorScheme colorScheme)
Parameter | Type | Description |
---|---|---|
colorScheme | IWindowsColorScheme | The IWindowsColorScheme to use as a base for the colors. |
Remarks
The default constructor initializes all fields to their default values.
Properties
ResetAllPropertiesOnSystemColorChange
Gets or sets whether to reset all properties when a system color change event occurs.
public bool ResetAllPropertiesOnSystemColorChange { get; set; }
Property Value
- bool:
true
if all properties should be reset; otherwise,false
.
ScrollBarBlockBackgroundFill
Gets or sets the BackgroundFill for the scrollbar block.
public BackgroundFill ScrollBarBlockBackgroundFill { get; set; }
Property Value
- BackgroundFill:
The BackgroundFill for the scrollbar block.
Methods
Dispose(bool)
Disposes any resources used by the object.
protected override void Dispose(bool disposing)
Parameter | Type | Description |
---|---|---|
disposing | bool | Whether the object is being disposed. |
DrawEditorViewSplitButton(PaintEventArgs, Rectangle, IEditorView, Orientation)
Draws an IEditorView split-button.
public virtual void DrawEditorViewSplitButton(PaintEventArgs e, Rectangle bounds, IEditorView view, Orientation orientation)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
view | IEditorView | The IEditorView being painted. |
orientation | Orientation | The Orientation of the split button. |
DrawScrollBarBackground(PaintEventArgs, Rectangle, ScrollBar)
Draws the background of a ScrollBar control.
public virtual void DrawScrollBarBackground(PaintEventArgs e, Rectangle bounds, ScrollBar scrollBar)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
scrollBar | ScrollBar | The ScrollBar being painted. |
DrawScrollBarBlockBackground(PaintEventArgs, Rectangle, IEditorView)
Draws the background of the scrollbar block that appears between the horizontal and vertical scrollbars.
public virtual void DrawScrollBarBlockBackground(PaintEventArgs e, Rectangle bounds, IEditorView view)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
view | IEditorView | The IEditorView being painted. |
DrawScrollBarButton(PaintEventArgs, Rectangle, ScrollBarButton)
Draws a ScrollBarButton.
public virtual void DrawScrollBarButton(PaintEventArgs e, Rectangle bounds, ScrollBarButton button)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
button | ScrollBarButton | The ScrollBarButton that is being painted. |
DrawScrollBarThumb(PaintEventArgs, Rectangle, ScrollBarThumb)
Draws a ScrollBarThumb.
public virtual void DrawScrollBarThumb(PaintEventArgs e, Rectangle bounds, ScrollBarThumb thumb)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
thumb | ScrollBarThumb | The ScrollBarThumb that is being painted. |
OnColorSchemeChanged()
Override this method in derived classes to respond to changes in the ColorScheme property.
protected override void OnColorSchemeChanged()
OnSystemUserPreferenceColorChanged()
Occurs when user preferences are changed for the color category.
protected override void OnSystemUserPreferenceColorChanged()
Remarks
This method will only be invoked if IsSystemUserPreferenceColorChangeMonitored returns true
.
ResetAll(bool)
Resets all property values to their defaults.
protected virtual void ResetAll(bool force)
Parameter | Type | Description |
---|---|---|
force | bool | Whether to force resetting. |
ResetResetAllPropertiesOnSystemColorChange()
Resets the ResetAllPropertiesOnSystemColorChange property to its default value.
public virtual void ResetResetAllPropertiesOnSystemColorChange()
ResetScrollBarBlockBackgroundFill()
Resets the ScrollBarBlockBackgroundFill property to its default value.
public virtual void ResetScrollBarBlockBackgroundFill()
ShouldSerializeResetAllPropertiesOnSystemColorChange()
Indicates whether the ResetAllPropertiesOnSystemColorChange property should be persisted.
public virtual bool ShouldSerializeResetAllPropertiesOnSystemColorChange()
Returns
- bool:
true
if the property value has changed from its default; otherwise,false
.
ShouldSerializeScrollBarBlockBackgroundFill()
Indicates whether the ScrollBarBlockBackgroundFill property should be persisted.
public virtual bool ShouldSerializeScrollBarBlockBackgroundFill()
Returns
- bool:
true
if the property value has changed from its default; otherwise,false
.
Inherited Members
- UIRenderer.Equals(object)
- UIRenderer.GetHashCode()
- UIRenderer.OnPropertyChanged(EventArgs)
- UIRenderer.ColorScheme
- UIRenderer.IsSystemUserPreferenceColorChangeMonitored
- UIRenderer.PropertyChanged
- DisposableObject.Dispose()
- DisposableObject.VerifyNotDisposed()
- DisposableObject.IsDisposed
- DisposableObject.Disposed
- MarshalByRefObject.GetLifetimeService()
- MarshalByRefObject.InitializeLifetimeService()
- MarshalByRefObject.MemberwiseClone(bool)
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)