84 references to InkCanvasSelectionHitResult
PresentationFramework (84)
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (20)
97
internal
InkCanvasSelectionHitResult
SelectionHandleHitTest(Point point)
99
InkCanvasSelectionHitResult
result =
InkCanvasSelectionHitResult
.None;
105
for (
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.TopLeft;
106
hitResult <=
InkCanvasSelectionHitResult
.Left; hitResult++)
120
if (result ==
InkCanvasSelectionHitResult
.None)
125
result =
InkCanvasSelectionHitResult
.Selection;
216
for (
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.TopLeft;
217
hitResult <=
InkCanvasSelectionHitResult
.Left; hitResult++)
341
private void GetHandleRect(
InkCanvasSelectionHitResult
hitResult, Rect rectWireFrame, out Rect visibleRect, out Rect toleranceRect)
349
case
InkCanvasSelectionHitResult
.TopLeft:
355
case
InkCanvasSelectionHitResult
.Top:
362
case
InkCanvasSelectionHitResult
.TopRight:
368
case
InkCanvasSelectionHitResult
.Left:
375
case
InkCanvasSelectionHitResult
.Right:
382
case
InkCanvasSelectionHitResult
.BottomLeft:
388
case
InkCanvasSelectionHitResult
.Bottom:
395
case
InkCanvasSelectionHitResult
.BottomRight:
MS\Internal\Ink\InkCanvasSelection.cs (8)
128
internal void StartFeedbackAdorner(Rect feedbackRect,
InkCanvasSelectionHitResult
activeSelectionHitResult)
131
Debug.Assert(activeSelectionHitResult !=
InkCanvasSelectionHitResult
.None, "activeSelectionHitResult cannot be InkCanvasSelectionHitResult.None.");
490
internal
InkCanvasSelectionHitResult
HitTestSelection(Point pointOnInkCanvas)
501
return
InkCanvasSelectionHitResult
.None;
508
InkCanvasSelectionHitResult
hitResult = _inkCanvas.SelectionAdorner.SelectionHandleHitTest(pointOnSelectionAdorner);
512
if ( hitResult ==
InkCanvasSelectionHitResult
.Selection
522
hitResult =
InkCanvasSelectionHitResult
.None;
1113
private Nullable<
InkCanvasSelectionHitResult
> _activeSelectionHitResult;
MS\Internal\Ink\PenCursorManager.cs (10)
118
internal static Cursor GetSelectionCursor(
InkCanvasSelectionHitResult
hitResult, bool isRightToLeft)
124
case
InkCanvasSelectionHitResult
.TopLeft:
125
case
InkCanvasSelectionHitResult
.BottomRight:
138
case
InkCanvasSelectionHitResult
.Bottom:
139
case
InkCanvasSelectionHitResult
.Top:
145
case
InkCanvasSelectionHitResult
.BottomLeft:
146
case
InkCanvasSelectionHitResult
.TopRight:
159
case
InkCanvasSelectionHitResult
.Left:
160
case
InkCanvasSelectionHitResult
.Right:
165
case
InkCanvasSelectionHitResult
.Selection:
MS\Internal\Ink\SelectionEditingBehavior.cs (32)
65
Debug.Assert(_hitResult !=
InkCanvasSelectionHitResult
.None);
189
if ( _hitResult ==
InkCanvasSelectionHitResult
.TopLeft ||
190
_hitResult ==
InkCanvasSelectionHitResult
.BottomLeft ||
191
_hitResult ==
InkCanvasSelectionHitResult
.Left )
200
if ( _hitResult ==
InkCanvasSelectionHitResult
.TopRight ||
201
_hitResult ==
InkCanvasSelectionHitResult
.BottomRight ||
202
_hitResult ==
InkCanvasSelectionHitResult
.Right )
211
if ( _hitResult ==
InkCanvasSelectionHitResult
.TopLeft ||
212
_hitResult ==
InkCanvasSelectionHitResult
.TopRight ||
213
_hitResult ==
InkCanvasSelectionHitResult
.Top )
222
if ( _hitResult ==
InkCanvasSelectionHitResult
.BottomLeft ||
223
_hitResult ==
InkCanvasSelectionHitResult
.BottomRight ||
224
_hitResult ==
InkCanvasSelectionHitResult
.Bottom )
236
if ( _hitResult ==
InkCanvasSelectionHitResult
.BottomRight ||
237
_hitResult ==
InkCanvasSelectionHitResult
.BottomLeft ||
238
_hitResult ==
InkCanvasSelectionHitResult
.TopRight ||
239
_hitResult ==
InkCanvasSelectionHitResult
.TopLeft ||
240
_hitResult ==
InkCanvasSelectionHitResult
.Selection )
245
else if ( _hitResult ==
InkCanvasSelectionHitResult
.Left ||
246
_hitResult ==
InkCanvasSelectionHitResult
.Right )
250
else if ( _hitResult ==
InkCanvasSelectionHitResult
.Top ||
251
_hitResult ==
InkCanvasSelectionHitResult
.Bottom )
270
case
InkCanvasSelectionHitResult
.BottomRight:
276
case
InkCanvasSelectionHitResult
.Bottom:
281
case
InkCanvasSelectionHitResult
.BottomLeft:
287
case
InkCanvasSelectionHitResult
.TopRight:
293
case
InkCanvasSelectionHitResult
.Top:
298
case
InkCanvasSelectionHitResult
.TopLeft:
304
case
InkCanvasSelectionHitResult
.Left:
309
case
InkCanvasSelectionHitResult
.Right:
314
case
InkCanvasSelectionHitResult
.Selection:
418
private
InkCanvasSelectionHitResult
_hitResult;
MS\Internal\Ink\SelectionEditor.cs (13)
151
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.None;
155
if ( hitResult !=
InkCanvasSelectionHitResult
.None )
199
private
InkCanvasSelectionHitResult
HitTestOnSelectionAdorner(Point position)
201
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.None;
210
if ( hitResult >=
InkCanvasSelectionHitResult
.TopLeft && hitResult <=
InkCanvasSelectionHitResult
.Left )
212
hitResult = InkCanvas.ResizeEnabled ? hitResult :
InkCanvasSelectionHitResult
.None;
214
else if ( hitResult ==
InkCanvasSelectionHitResult
.Selection )
216
hitResult = InkCanvas.MoveEnabled ? hitResult :
InkCanvasSelectionHitResult
.None;
232
InkCanvasSelectionHitResult
hitResult = HitTestOnSelectionAdorner(hitPoint);
252
private
InkCanvasSelectionHitResult
_hitResult;
System\Windows\Controls\InkCanvas.cs (1)
1762
public
InkCanvasSelectionHitResult
HitTestSelection(Point point)