WebPartManager.GetDisplayTitle(WebPart) 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.
Gets a string containing the value for the DisplayTitle property of a WebPart control.
protected public:
virtual System::String ^ GetDisplayTitle(System::Web::UI::WebControls::WebParts::WebPart ^ webPart);
protected internal virtual string GetDisplayTitle (System.Web.UI.WebControls.WebParts.WebPart webPart);
abstract member GetDisplayTitle : System.Web.UI.WebControls.WebParts.WebPart -> string
override this.GetDisplayTitle : System.Web.UI.WebControls.WebParts.WebPart -> string
Protected Friend Overridable Function GetDisplayTitle (webPart As WebPart) As String
Parameters
- webPart
- WebPart
The control for which the method returns the value of DisplayTitle.
Returns
A string that contains the calculated value of DisplayTitle for webPart
.
Exceptions
webPart
is null
.
webPart
is not in the Controls collection.
Remarks
Gets the calculated value of the DisplayTitle property for webPart
. When developers do not assign a value to the Title property of a WebPart control, this method produces the value to display as the title. The calculated value for untitled controls consists of a number appended to a string, with the number indicating a control's sequence within the current zone.
Notes to Inheritors
This method can be overridden to change how the default display title is calculated.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기