WebPartZoneBase.DisplayTitle 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 the current value of the text being used as the title for a WebPartZoneBase zone when the zone itself is visible.
public:
virtual property System::String ^ DisplayTitle { System::String ^ get(); };
[System.ComponentModel.Browsable(false)]
public virtual string DisplayTitle { get; }
[<System.ComponentModel.Browsable(false)>]
member this.DisplayTitle : string
Public Overridable ReadOnly Property DisplayTitle As String
Property Value
A string that contains the title text for a zone. The default is the value of the base HeaderText property.
- Attributes
Examples
The following code example demonstrates the declarative use of the DisplayTitle property on a WebPartZone control. For the full code example, including the code-behind source file and the .aspx page that contains the zone in this code, see the WebPartZoneBase class overview.
Notice that in the following code example, the DisplayTitle property value is retrieved from the partial class.
protected void Button4_Click(object sender, EventArgs e)
{
StringBuilder builder = new StringBuilder();
builder.AppendLine(@"<strong>WebPartZone1 DisplayTitle Property</strong><br />");
builder.AppendLine(WebPartZone1.DisplayTitle + @"<br />");
Label2.Text = builder.ToString();
Label2.Visible = true;
}
Protected Sub Button4_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim builder As New StringBuilder()
builder.AppendLine("<strong>WebPartZone1 DisplayTitle Property</strong><br />")
builder.AppendLine(WebPartZone1.DisplayTitle + "<br />")
Label2.Text = builder.ToString()
Label2.Visible = True
End Sub
Remarks
The DisplayTitle property either gets its value from the base HeaderText property or, if that value is null
, uses the ID value for the zone.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기