Select() public method

public Select ( TextPointer anchorPosition, TextPointer movingPosition ) : void
anchorPosition TextPointer
movingPosition TextPointer
return void
        // Token: 0x06003879 RID: 14457 RVA: 0x000FD0D4 File Offset: 0x000FB2D4
        private static void CreateImplicitParagraphIfNeededAndUpdateSelection(TextSelection thisSelection)
        {
            TextPointer textPointer = thisSelection.Start;

            if (TextPointerBase.IsAtPotentialParagraphPosition(textPointer))
            {
                textPointer = TextRangeEditTables.EnsureInsertionPosition(textPointer);
                thisSelection.Select(textPointer, textPointer);
            }
        }
Beispiel #2
0
        private static void CreateImplicitParagraphIfNeededAndUpdateSelection(TextSelection thisSelection)
        {
            // Create implicit paragraph if we are at a potential paragraph position, such as empty FlowDocument, TableCell.
            TextPointer position = thisSelection.Start;

            if (TextPointerBase.IsAtPotentialParagraphPosition(position))
            {
                position = TextRangeEditTables.EnsureInsertionPosition(position);
                thisSelection.Select(position, position);
            }
        }
Beispiel #3
0
 private static void CreateImplicitParagraphIfNeededAndUpdateSelection(TextSelection thisSelection)
 { 
     // Create implicit paragraph if we are at a potential paragraph position, such as empty FlowDocument, TableCell. 
     TextPointer position = thisSelection.Start;
     if (TextPointerBase.IsAtPotentialParagraphPosition(position)) 
     {
         position = TextRangeEditTables.EnsureInsertionPosition(position);
         thisSelection.Select(position, position);
     } 
 }