TextPointer.InsertParagraphBreak Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inserts a paragraph break at the current position.
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
Returns
A TextPointer to the beginning (ContentStart) of the new paragraph.
Exceptions
This method is called on a position that cannot be split to accommodate a new paragraph, such as in the scope of a Hyperlink or InlineUIContainer.
Remarks
If this method is called when the current position is inside of an existing Paragraph element, the existing paragraph and any content it contains are split into two paragraphs at the current position. If this method is called when the current position is not inside of an existing paragraph, a new, empty paragraph is inserted. If this method is called at a position unsuitable for splitting or inserting a paragraph (for example, if the current position is inside of a Hyperlink element), an exception is thrown.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기