Table of Contents

Class Minimap

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

Represents the minimap at the right side of the Edit control.

public class Minimap : IMinimap, IUpdate, IDisposable
Inheritance
Minimap
Implements

Constructors

Minimap()

Initializes a new instance of the Minimap with default settings.

Minimap(TextEditor)

Initializes a new instance of the Minimap with specified owner.

Properties

AllowDrag

Indicates whether drag operation can performed to Minimap.

AllowScroll

Indicates whether scroll operation can performed to Minimap.

IsDragging

Indicates whether Minimap is in dragging state.

IsScrolling

Indicates whether Minimap is in scrolling state.

Options

Gets or sets a MinimapOptions that determine minimap appearance and behaviour.

UpdateCount

Keeps track of calls to BeginUpdate and EndUpdate so that they can be nested.

Visible

Gets or sets a value indicating whether minimap area should be painted.

Methods

BeginUpdate()

Prevents Margin updating until calling Minimap.EndUpdate method.

CancelDragging()

Cancels dragging the minimap.

CancelScrolling()

Cancels scrolling the minimap.

Contains(int, int)

Indicates whether Minimap area contains given position.

ContainsBorder(double, double)

Indicates whether left border of Minimap area contains given position.

DisableUpdate()

Prevents Minimap updating until calling Minimap.EndUpdate method.

Dispose()

Release resources of the Margin object.

Dispose(bool)
DragTo(double, double)

Moves Minimap left border to specified position.

EnableUpdate()

Re-enables Minimap updating, that was turn of by calling Minimap.DisableUpdate method.

EndUpdate()

Re-enables page updating, that was turn of by calling Minimap.BeginUpdate method.

GetDisplayLine(int)

Gets a line to be displayed at y-position

GetDisplayPoint(int)

Gets a display position at minimap y-position

GetHint(int, int)

Gets a text under the cursor to be displayed in the hint

OnAllowDragChanged()
OnAllowScrollChanged()
OnClick(Point)

Handles IMinimap click.

OnIsDragingChanged()
OnIsScrollingChanged()
OnOptionsChanged()
OnVisibleChanged()
ScrollTo(double, double)

Scrolls Minimap to specified position.

Update()

Forces editor control to invalidate it's area.