HtmlElement.OuterText Property
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.
Gets or sets the current element's text.
public:
property System::String ^ OuterText { System::String ^ get(); void set(System::String ^ value); };
public string OuterText { get; set; }
member this.OuterText : string with get, set
Public Property OuterText As String
Property Value
The text inside the current element, and in the element's children.
Exceptions
You cannot set text outside of this element.
Remarks
If you attempt to assign HTML to an element with OuterText, the HTML code will display as literals in the document, just as if you were viewing HTML within a text file. If you assign HTML to an element using the InnerHtml property, OuterText will return all of the text in that HTML with the markup removed.
Assigning a value to OuterText will destroy any child elements that belong to the element.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기