OnMouseDown() public method

Places an insertion point unless it would be placed within a ranged selection. Also determines sets whether the mouse down occured within a ranged selection, so that OnMouseMove can know if it can drag and so that OnMouseClick can know if can place an insertion point within the ranged selection.
public OnMouseDown ( MouseEventArgs e, Keys keys, IVwGraphics vg, PaintTransform ptrans ) : void
e MouseEventArgs
keys Keys
vg IVwGraphics
ptrans PaintTransform
return void
Esempio n. 1
0
 protected override void OnMouseDown(MouseEventArgs e)
 {
     base.OnMouseDown(e);
     Focus();
     if (Root == null || m_lastLayoutWidth == 0)
     {
         return;
     }
     using (var gm = new GraphicsManager(this))
     {
         m_root.OnMouseDown(e, ModifierKeys, gm.VwGraphics, PaintArg(gm.VwGraphics));
     }
 }