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++)
343
private void GetHandleRect(
InkCanvasSelectionHitResult
hitResult, Rect rectWireFrame, out Rect visibleRect, out Rect toleranceRect)
351
case
InkCanvasSelectionHitResult
.TopLeft:
357
case
InkCanvasSelectionHitResult
.Top:
364
case
InkCanvasSelectionHitResult
.TopRight:
370
case
InkCanvasSelectionHitResult
.Left:
377
case
InkCanvasSelectionHitResult
.Right:
384
case
InkCanvasSelectionHitResult
.BottomLeft:
390
case
InkCanvasSelectionHitResult
.Bottom:
397
case
InkCanvasSelectionHitResult
.BottomRight:
MS\Internal\Ink\InkCanvasSelection.cs (8)
127
internal void StartFeedbackAdorner(Rect feedbackRect,
InkCanvasSelectionHitResult
activeSelectionHitResult)
130
Debug.Assert(activeSelectionHitResult !=
InkCanvasSelectionHitResult
.None, "activeSelectionHitResult cannot be InkCanvasSelectionHitResult.None.");
489
internal
InkCanvasSelectionHitResult
HitTestSelection(Point pointOnInkCanvas)
500
return
InkCanvasSelectionHitResult
.None;
507
InkCanvasSelectionHitResult
hitResult = _inkCanvas.SelectionAdorner.SelectionHandleHitTest(pointOnSelectionAdorner);
511
if ( hitResult ==
InkCanvasSelectionHitResult
.Selection
521
hitResult =
InkCanvasSelectionHitResult
.None;
1112
private Nullable<
InkCanvasSelectionHitResult
> _activeSelectionHitResult;
MS\Internal\Ink\PenCursorManager.cs (10)
117
internal static Cursor GetSelectionCursor(
InkCanvasSelectionHitResult
hitResult, bool isRightToLeft)
123
case
InkCanvasSelectionHitResult
.TopLeft:
124
case
InkCanvasSelectionHitResult
.BottomRight:
137
case
InkCanvasSelectionHitResult
.Bottom:
138
case
InkCanvasSelectionHitResult
.Top:
144
case
InkCanvasSelectionHitResult
.BottomLeft:
145
case
InkCanvasSelectionHitResult
.TopRight:
158
case
InkCanvasSelectionHitResult
.Left:
159
case
InkCanvasSelectionHitResult
.Right:
164
case
InkCanvasSelectionHitResult
.Selection:
MS\Internal\Ink\SelectionEditingBehavior.cs (32)
64
Debug.Assert(_hitResult !=
InkCanvasSelectionHitResult
.None);
188
if ( _hitResult ==
InkCanvasSelectionHitResult
.TopLeft ||
189
_hitResult ==
InkCanvasSelectionHitResult
.BottomLeft ||
190
_hitResult ==
InkCanvasSelectionHitResult
.Left )
199
if ( _hitResult ==
InkCanvasSelectionHitResult
.TopRight ||
200
_hitResult ==
InkCanvasSelectionHitResult
.BottomRight ||
201
_hitResult ==
InkCanvasSelectionHitResult
.Right )
210
if ( _hitResult ==
InkCanvasSelectionHitResult
.TopLeft ||
211
_hitResult ==
InkCanvasSelectionHitResult
.TopRight ||
212
_hitResult ==
InkCanvasSelectionHitResult
.Top )
221
if ( _hitResult ==
InkCanvasSelectionHitResult
.BottomLeft ||
222
_hitResult ==
InkCanvasSelectionHitResult
.BottomRight ||
223
_hitResult ==
InkCanvasSelectionHitResult
.Bottom )
235
if ( _hitResult ==
InkCanvasSelectionHitResult
.BottomRight ||
236
_hitResult ==
InkCanvasSelectionHitResult
.BottomLeft ||
237
_hitResult ==
InkCanvasSelectionHitResult
.TopRight ||
238
_hitResult ==
InkCanvasSelectionHitResult
.TopLeft ||
239
_hitResult ==
InkCanvasSelectionHitResult
.Selection )
244
else if ( _hitResult ==
InkCanvasSelectionHitResult
.Left ||
245
_hitResult ==
InkCanvasSelectionHitResult
.Right )
249
else if ( _hitResult ==
InkCanvasSelectionHitResult
.Top ||
250
_hitResult ==
InkCanvasSelectionHitResult
.Bottom )
269
case
InkCanvasSelectionHitResult
.BottomRight:
275
case
InkCanvasSelectionHitResult
.Bottom:
280
case
InkCanvasSelectionHitResult
.BottomLeft:
286
case
InkCanvasSelectionHitResult
.TopRight:
292
case
InkCanvasSelectionHitResult
.Top:
297
case
InkCanvasSelectionHitResult
.TopLeft:
303
case
InkCanvasSelectionHitResult
.Left:
308
case
InkCanvasSelectionHitResult
.Right:
313
case
InkCanvasSelectionHitResult
.Selection:
417
private
InkCanvasSelectionHitResult
_hitResult;
MS\Internal\Ink\SelectionEditor.cs (13)
150
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.None;
154
if ( hitResult !=
InkCanvasSelectionHitResult
.None )
198
private
InkCanvasSelectionHitResult
HitTestOnSelectionAdorner(Point position)
200
InkCanvasSelectionHitResult
hitResult =
InkCanvasSelectionHitResult
.None;
209
if ( hitResult >=
InkCanvasSelectionHitResult
.TopLeft && hitResult <=
InkCanvasSelectionHitResult
.Left )
211
hitResult = InkCanvas.ResizeEnabled ? hitResult :
InkCanvasSelectionHitResult
.None;
213
else if ( hitResult ==
InkCanvasSelectionHitResult
.Selection )
215
hitResult = InkCanvas.MoveEnabled ? hitResult :
InkCanvasSelectionHitResult
.None;
231
InkCanvasSelectionHitResult
hitResult = HitTestOnSelectionAdorner(hitPoint);
251
private
InkCanvasSelectionHitResult
_hitResult;
System\Windows\Controls\InkCanvas.cs (1)
1773
public
InkCanvasSelectionHitResult
HitTestSelection(Point point)