System.Windows.Documents.TextSelection.Select C# (CSharp) Method

Select() public method

public Select ( TextPointer anchorPosition, TextPointer movingPosition ) : void
anchorPosition TextPointer
movingPosition TextPointer
return void
		public void Select (TextPointer anchorPosition, TextPointer movingPosition)
		{
			if (anchorPosition == null)
				throw new ArgumentNullException ("anchorPosition");
			if (movingPosition == null)
				throw new ArgumentNullException ("movingPosition");

			NativeMethods.text_selection_select (native, anchorPosition.NativeHandle, movingPosition.NativeHandle);
		}

Usage Example

コード例 #1
0
        // 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);
            }
        }
All Usage Examples Of System.Windows.Documents.TextSelection::Select