Class Gutter
Represents gutter at the left side of the Edit control.
public class Gutter : IGutter, IUpdate, IDisposable
- Inheritance
-
Gutter
- Implements
Constructors
- Gutter()
Initializes a new instance of the
Gutterclass with default settings.
- Gutter(ISyntaxEdit)
Initializes a new instance of the
Gutterclass with a specified owner.
Properties
- AlphaImages
Gets or sets an AlphaImageList object that contains collection of images for gutter.
- AlphaImagesHighDpi
Gets or sets an AlphaImageList object that contains collection of images for gutter for high DPI.
- BookMarkImageIndex
Gets or sets a value that specifies index of item in the image collection used to paint bookmark.
- Brush
Gets or sets a Brush object used to paint gutter.
- BrushColor
Gets or sets background color of the gutter.
- CodeActionImageIndex
Gets or sets a value that specifies index of item in the image collection used to paint light bulb for code action.
- CodeActionPosition
Gets or sets code action position within the text.
- DisplayArea
Gets display width of the gutter, including line numbers and outlining area, but not including line modificators if they're painted outside gutter.
- DisplayWidth
Gets display width of the gutter, including line numbers and outlining area.
- DrawLineBookmarks
Gets or sets a value indicating whether Edit control should draw triangle at bookmark position inside line.
- HighlightBlockAreaColor
Gets or sets a background color of the highlighted block area.
- HighlightOutlineAreaColor
Gets or sets a background color of the highlighted outline area.
- Images
Gets or sets an ImageList object that contains collection of images for gutter.
- ImagesHighDpi
Gets or sets an ImageList object that contains collection of images for gutter for high DPI.
- ImagesResourceNameSuffix
Gets or sets the image resource name suffix.
- LineBookmarksColor
Gets or sets a color of the line bookmarks.
- LineModificatorChangedColor
Gets or sets a color of the line modificators(color stitch that indicates that the line content is unmodified, modified or saved) in the modified state.
- LineModificatorSavedColor
Gets or sets a color of the line modificators(color stitch that indicates that the line content is unmodified, modified or saved) in the saved state.
- LineNumbersAlignment
Gets or sets line numbers alignment information.
- LineNumbersBackColor
Gets or sets background color for the line numbers.
- LineNumbersForeColor
Gets or sets foreground color for the line numbers.
- LineNumbersLeftIndent
Gets or sets line numbers indentation from the left gutter border. When auto scaling enabled, measured in DIP.
- LineNumbersLeftIndentInPixels
Gets line numbers indentation from the left gutter border in pixels.
- LineNumbersRightIndent
Gets or sets line numbers indentation from the right gutter border. When auto scaling enabled, measured in DIP.
- LineNumbersRightIndentInPixels
Gets line numbers indentation from the right gutter border in pixels.
- LineNumbersStart
Gets or sets number of the first line being painted on the gutter.
- MaxLineNumberLength
Gets or sets maximum count of numbers in the line number.
- Options
Gets or sets a
GutterOptionsthat determine gutter appearance and behaviour.
- OutlineImageBackColor
Gets or sets an outline image back color.
- OutlineRect
Gets the rectangle that represents an outline section area.
- OutliningLeftIndent
Gets or sets outlining indentation from the left gutter border. When auto scaling enabled, measured in DIP.
- OutliningLeftIndentInPixels
Gets outlining indentation from the left gutter border in pixels.
- OutliningRightIndent
Gets or sets outlining indentation from the right gutter border. When auto scaling enabled, measured in DIP.
- OutliningRightIndentInPixels
Gets outlining indentation from the right gutter border in pixels.
- Pen
Gets or sets a Pen object used to paint gutter line.
- PenColor
Gets or sets color of the gutter line.
- Rect
Gets the rectangle that represents gutter area.
- ShowBookmarkHints
Gets or sets a value indicating whether Edit control should display text describing bookmark in form of tooltip window when mouse pointer is over the gutter bookmark.
- UpdateCount
Keeps track of calls to
BeginUpdateandEndUpdateso that they can be nested.
- UserMarginBackColor
Gets or sets background color of the user margin.
- UserMarginForeColor
Gets or sets foreground color of the line numbers.
- UserMarginText
Gets or sets text of the user margin.
- UserMarginWidth
Gets or sets the width of the user margin area. When auto scaling enabled, measured in DIP.
- UserMarginWidthInPixels
Gets the width of the user margin area in pixels.
- Visible
Gets or sets a value indicating whether the gutter area is visible.
- Width
Gets or sets the width of the gutter. When auto scaling enabled, measured in DIP.
- WidthInPixels
Gets the width of the gutter in pixels.
- WrapImageIndex
Gets or sets a value that specifies index of item in the image collection used to paint special mark indicating the wrapped line.
Methods
- Assign(IGutter)
Copies the contents from another
IGutterobject.
- BeginUpdate()
Prevents gutter updating until calling
Gutter.EndUpdatemethod.
- DisableUpdate()
Prevents gutter updating until calling
Gutter.EndUpdatemethod.
- Dispose()
Disposes this
Gutterand frees resources associated with it.
- EnableUpdate()
Re-enables gutter updating, that was turn of by calling
Gutter.BeginUpdatemethod.
- EndUpdate()
Re-enables gutter updating, that was turn of by calling
Gutter.BeginUpdatemethod.
- ~Gutter()
Destroys the instance of the
Gutterclass.
- GetHitTest(int, int, IHitTestInfo)
Fills hitTestInfo parameter by information about a part of the control at specified coordinate.
- GetImage(int)
When implemented by a class, gets image from the images collection
- InvalidateLineNumberArea(bool)
Invalidates line number area if it needs to be altered.
Specifies whether line number width needs to be recalculated.
- IsMouseOnOutlineButton(int, int, out IOutlineRange)
Indicates whether mouse point is within the outline button area.
- OnClick(EventArgs)
Raises the
Clickevent.
- OnDoubleClick(EventArgs)
Raises the
DoubleClickevent.
- Paint(IPainter, Rectangle)
Draws gutter on the specified graphic surface.
- Paint(IPainter, Rectangle, int)
Draws gutter on the specified graphic surface.
- ResetActionImageIndex()
Resets the
actionImageIndexto the default value.
- ResetBookMarkImageIndex()
Resets the
BookMarkImageIndexto the default value.
- ResetBrushColor()
Resets the
BrushColorto the default value.
- ResetDrawLineBookmarks()
Resets the
DrawLineBookmarksto the default value.
- ResetHighlightBlockAreaColor()
Resets the
HighlightBlockAreaColorto the default value.
- ResetHighlightOutlineAreaColor()
Resets the
HighlightOutlineAreaColorto the default value.
- ResetLineBookmarksColor()
Resets the
LineBookmarksColorto the default value.
- ResetLineModificatorChangedColor()
Resets the
LineModificatorChangedColorto the default value.
- ResetLineModificatorSavedColor()
Resets the
LineModificatorSavedColorto the default value.
- ResetLineNumbersAlignment()
Resets the
LineNumbersAlignmentto the default value.
- ResetLineNumbersBackColor()
Resets the
LineNumbersBackColorto the default value.
- ResetLineNumbersForeColor()
Resets the
LineNumbersForeColorto the default value.
- ResetLineNumbersLeftIndent()
Resets the
LineNumbersLeftIndentto the default value.
- ResetLineNumbersRightIndent()
Resets the
LineNumbersRightIndentto the default value.
- ResetLineNumbersStart()
Resets the
LineNumbersStartto the default value.
- ResetOptions()
Resets the
Optionsto the default value.
- ResetOutlineImageBackColor()
Resets the
OutlineImageBackColorto the default value.
- ResetOutliningLeftIndent()
Resets the
OutliningLeftIndentto the default value.
- ResetOutliningRightIndent()
Resets the
OutliningRightIndentto the default value.
- ResetPenColor()
Resets the
PenColorto the default value.
- ResetShowBookmarkHints()
Resets the
ShowBookmarkHintsto the default value.
- ResetUserMarginBackColor()
Resets the
UserMarginBackColorto the default value.
- ResetUserMarginForeColor()
Resets the
UserMarginForeColorto the default value.
- ResetUserMarginText()
Resets the
UserMarginTextto the default value.
- ResetUserMarginWidth()
Resets the
UserMarginWidthto the default value.
- ResetVisible()
Resets the
Visibleto the default value.
- ResetWidth()
Resets the
Widthto the default value.
- ResetWrapImageIndex()
Resets the
WrapImageIndexto the default value.
- ShouldSerializeBookMarkImageIndex()
Indicates whether the
BookMarkImageIndexproperty should be persisted.
- ShouldSerializeBrushColor()
Indicates whether the
BrushColorproperty should be persisted.
- ShouldSerializeCodeActionImageIndex()
Indicates whether the
CodeActionImageIndexproperty should be persisted.
- ShouldSerializeHighlightBlockAreaColor()
Indicates whether the
HighlightBlockAreaColorproperty should be persisted.
- ShouldSerializeHighlightOutlineAreaColor()
Indicates whether the
HighlightOutlineAreaColorproperty should be persisted.
- ShouldSerializeLineBookmarksColor()
Indicates whether the
LineBookmarksColorproperty should be persisted.
- ShouldSerializeLineModificatorChangedColor()
Indicates whether the
LineModificatorChangedColorproperty should be persisted.
- ShouldSerializeLineModificatorSavedColor()
Indicates whether the
LineModificatorSavedColorproperty should be persisted.
- ShouldSerializeLineNumbersBackColor()
Indicates whether the
LineNumbersBackColorproperty should be persisted.
- ShouldSerializeLineNumbersForeColor()
Indicates whether the
LineNumbersForeColorproperty should be persisted.
- ShouldSerializeLineNumbersLeftIndent()
Indicates whether the
LineNumbersLeftIndentproperty should be persisted.
- ShouldSerializeLineNumbersRightIndent()
Indicates whether the
LineNumbersRightIndentproperty should be persisted.
- ShouldSerializeLineNumbersStart()
Indicates whether the
LineNumbersStartproperty should be persisted.
- ShouldSerializeOptions()
Indicates whether the
Optionsproperty should be persisted.
- ShouldSerializeOutlineImageBackColor()
Indicates whether the
OutlineImageBackColorproperty should be persisted.
- ShouldSerializeOutliningLeftIndent()
Indicates whether the
OutliningLeftIndentproperty should be persisted.
- ShouldSerializeOutliningRightIndent()
Indicates whether the
OutliningRightIndentproperty should be persisted.
- ShouldSerializePenColor()
Indicates whether the
PenColorproperty should be persisted.
- ShouldSerializeUserMarginBackColor()
Indicates whether the
UserMarginBackColorproperty should be persisted.
- ShouldSerializeUserMarginForeColor()
Indicates whether the
UserMarginForeColorproperty should be persisted.
- ShouldSerializeUserMarginText()
Indicates whether the
UserMarginTextproperty should be persisted.
- ShouldSerializeUserMarginWidth()
Indicates whether the
UserMarginWidthproperty should be persisted.
- ShouldSerializeWidth()
Indicates whether the
Widthproperty should be persisted.
- ShouldSerializeWrapImageIndex()
Indicates whether the
WrapImageIndexproperty should be persisted.
- Update()
Causes the edit control to invalidate it's content.
- Update(bool)
Causes the edit control to invalidate it's content.
Events
- Click
Occurs when the
Gutterclicked.
- DoubleClick
Occurs when the
Gutterdouble-clicked.
- DrawUserMargin
Occurs when user margin part of each line is drawing.