84 references to InkCanvasSelectionHitResult
PresentationFramework (84)
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (20)
104
internal
InkCanvasSelectionHitResult
SelectionHandleHitTest(Point point)
106
InkCanvasSelectionHitResult
result =
InkCanvasSelectionHitResult
.None;
112
for (
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.TopLeft;
113
hitResult <=
InkCanvasSelectionHitResult
.Left; hitResult++)
127
if (result ==
InkCanvasSelectionHitResult
.None)
132
result =
InkCanvasSelectionHitResult
.Selection;
223
for (
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.TopLeft;
224
hitResult <=
InkCanvasSelectionHitResult
.Left; hitResult++)
348
private void GetHandleRect(
InkCanvasSelectionHitResult
hitResult, Rect rectWireFrame, out Rect visibleRect, out Rect toleranceRect)
356
case
InkCanvasSelectionHitResult
.TopLeft:
362
case
InkCanvasSelectionHitResult
.Top:
369
case
InkCanvasSelectionHitResult
.TopRight:
375
case
InkCanvasSelectionHitResult
.Left:
382
case
InkCanvasSelectionHitResult
.Right:
389
case
InkCanvasSelectionHitResult
.BottomLeft:
395
case
InkCanvasSelectionHitResult
.Bottom:
402
case
InkCanvasSelectionHitResult
.BottomRight:
MS\Internal\Ink\InkCanvasSelection.cs (8)
140
internal void StartFeedbackAdorner(Rect feedbackRect,
InkCanvasSelectionHitResult
activeSelectionHitResult)
143
Debug.Assert(activeSelectionHitResult !=
InkCanvasSelectionHitResult
.None, "activeSelectionHitResult cannot be InkCanvasSelectionHitResult.None.");
502
internal
InkCanvasSelectionHitResult
HitTestSelection(Point pointOnInkCanvas)
513
return
InkCanvasSelectionHitResult
.None;
520
InkCanvasSelectionHitResult
hitResult = _inkCanvas.SelectionAdorner.SelectionHandleHitTest(pointOnSelectionAdorner);
524
if ( hitResult ==
InkCanvasSelectionHitResult
.Selection
534
hitResult =
InkCanvasSelectionHitResult
.None;
1125
private Nullable<
InkCanvasSelectionHitResult
> _activeSelectionHitResult;
MS\Internal\Ink\PenCursorManager.cs (10)
123
internal static Cursor GetSelectionCursor(
InkCanvasSelectionHitResult
hitResult, bool isRightToLeft)
129
case
InkCanvasSelectionHitResult
.TopLeft:
130
case
InkCanvasSelectionHitResult
.BottomRight:
143
case
InkCanvasSelectionHitResult
.Bottom:
144
case
InkCanvasSelectionHitResult
.Top:
150
case
InkCanvasSelectionHitResult
.BottomLeft:
151
case
InkCanvasSelectionHitResult
.TopRight:
164
case
InkCanvasSelectionHitResult
.Left:
165
case
InkCanvasSelectionHitResult
.Right:
170
case
InkCanvasSelectionHitResult
.Selection:
MS\Internal\Ink\SelectionEditingBehavior.cs (32)
78
Debug.Assert(_hitResult !=
InkCanvasSelectionHitResult
.None);
202
if ( _hitResult ==
InkCanvasSelectionHitResult
.TopLeft ||
203
_hitResult ==
InkCanvasSelectionHitResult
.BottomLeft ||
204
_hitResult ==
InkCanvasSelectionHitResult
.Left )
213
if ( _hitResult ==
InkCanvasSelectionHitResult
.TopRight ||
214
_hitResult ==
InkCanvasSelectionHitResult
.BottomRight ||
215
_hitResult ==
InkCanvasSelectionHitResult
.Right )
224
if ( _hitResult ==
InkCanvasSelectionHitResult
.TopLeft ||
225
_hitResult ==
InkCanvasSelectionHitResult
.TopRight ||
226
_hitResult ==
InkCanvasSelectionHitResult
.Top )
235
if ( _hitResult ==
InkCanvasSelectionHitResult
.BottomLeft ||
236
_hitResult ==
InkCanvasSelectionHitResult
.BottomRight ||
237
_hitResult ==
InkCanvasSelectionHitResult
.Bottom )
249
if ( _hitResult ==
InkCanvasSelectionHitResult
.BottomRight ||
250
_hitResult ==
InkCanvasSelectionHitResult
.BottomLeft ||
251
_hitResult ==
InkCanvasSelectionHitResult
.TopRight ||
252
_hitResult ==
InkCanvasSelectionHitResult
.TopLeft ||
253
_hitResult ==
InkCanvasSelectionHitResult
.Selection )
258
else if ( _hitResult ==
InkCanvasSelectionHitResult
.Left ||
259
_hitResult ==
InkCanvasSelectionHitResult
.Right )
263
else if ( _hitResult ==
InkCanvasSelectionHitResult
.Top ||
264
_hitResult ==
InkCanvasSelectionHitResult
.Bottom )
283
case
InkCanvasSelectionHitResult
.BottomRight:
289
case
InkCanvasSelectionHitResult
.Bottom:
294
case
InkCanvasSelectionHitResult
.BottomLeft:
300
case
InkCanvasSelectionHitResult
.TopRight:
306
case
InkCanvasSelectionHitResult
.Top:
311
case
InkCanvasSelectionHitResult
.TopLeft:
317
case
InkCanvasSelectionHitResult
.Left:
322
case
InkCanvasSelectionHitResult
.Right:
327
case
InkCanvasSelectionHitResult
.Selection:
431
private
InkCanvasSelectionHitResult
_hitResult;
MS\Internal\Ink\SelectionEditor.cs (13)
166
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.None;
170
if ( hitResult !=
InkCanvasSelectionHitResult
.None )
214
private
InkCanvasSelectionHitResult
HitTestOnSelectionAdorner(Point position)
216
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.None;
225
if ( hitResult >=
InkCanvasSelectionHitResult
.TopLeft && hitResult <=
InkCanvasSelectionHitResult
.Left )
227
hitResult = InkCanvas.ResizeEnabled ? hitResult :
InkCanvasSelectionHitResult
.None;
229
else if ( hitResult ==
InkCanvasSelectionHitResult
.Selection )
231
hitResult = InkCanvas.MoveEnabled ? hitResult :
InkCanvasSelectionHitResult
.None;
247
InkCanvasSelectionHitResult
hitResult = HitTestOnSelectionAdorner(hitPoint);
267
private
InkCanvasSelectionHitResult
_hitResult;
System\Windows\Controls\InkCanvas.cs (1)
1774
public
InkCanvasSelectionHitResult
HitTestSelection(Point point)