TextPointer.InsertParagraphBreak 메서드

정의

현재 위치에 단락 나누기를 삽입합니다.

public:
 System::Windows::Documents::TextPointer ^ InsertParagraphBreak();
public System.Windows.Documents.TextPointer InsertParagraphBreak();
member this.InsertParagraphBreak : unit -> System.Windows.Documents.TextPointer
Public Function InsertParagraphBreak () As TextPointer

반품

새 단락의 시작 부분(ContentStart)에 대한 A TextPointer 입니다.

예외

이 메서드는 범위와 같이 Hyperlink 새 단락을 수용하기 위해 분할할 수 없는 위치에서 호출됩니다 InlineUIContainer.

설명

현재 위치가 기존 Paragraph 요소 내에 있을 때 이 메서드가 호출되면 기존 단락과 해당 단락에 포함된 모든 콘텐츠가 현재 위치에 있는 두 단락으로 분할됩니다. 현재 위치가 기존 단락 내에 없을 때 이 메서드를 호출하면 비어 있는 새 단락이 삽입됩니다. 단락을 분할하거나 삽입하는 데 적합하지 않은 위치에서 이 메서드가 호출되는 경우(예: 현재 위치가 요소 내부에 Hyperlink 있는 경우) 예외가 throw됩니다.

적용 대상