Back to Devexpress

PropertyGridControl.Collapse(String) Method

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertygridcontrol-dot-collapse-x28-system-dot-string-x29.md

latest1.7 KB
Original Source

PropertyGridControl.Collapse(String) Method

Collapses the specified property or category.

Namespace : DevExpress.Xpf.PropertyGrid

Assembly : DevExpress.Xpf.PropertyGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public virtual void Collapse(
    string propertyPath
)
vb
Public Overridable Sub Collapse(
    propertyPath As String
)

Parameters

NameTypeDescription
propertyPathString

A String which specifies the property or category path.

|

Remarks

To expand a collapsed property in code, use the PropertyGridControl.Expand method.

Note

To collapse a category in code, run the Collapse method with category name in angle brackets as a parameter:

csharp
propertyGrid.Collapse("<MyCategoryName>");

See Also

Expand(String)

PropertyGridControl Class

PropertyGridControl Members

DevExpress.Xpf.PropertyGrid Namespace