Visual Basic (Declaration) | |
---|---|
Public Property IsHeaderRestricted As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public bool IsHeaderRestricted {get; set;} |
XAML Attributes Usage | |
---|---|
<object IsHeaderRestricted=bool .../> |
Dependencies Property Information | |
---|---|
Identifier field | |
Metadata properties set to true | AffectsRender |
XAML Attributes Usage | |
---|---|
<object IsHeaderRestricted=bool .../> |
Dependencies Property Information | |
---|---|
Identifier field | |
Metadata properties set to true | AffectsRender |
Return Value
true to restrict the header to appear fully within the bounding rectangle of the AnnObjectBase.Container; otherwise, false.For XAML example, refer to AnnPolygonObject.
When the NameRestrict value of an AnnObjectBase is set to true, calling the AnnObjectBase.RestrictHeader method will move the name (by changing the AnnObjectBase.HeaderOffset property so the header will be restricted to appear fully within the Width and Height properties of the AnnContainer that contains this AnnObjectBase). For more information, refer to WPF Annotation Object Headers.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family