# CollapsibleSectionViewModel class

Namespace: [Rhino.UI.Controls](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.ui.controls.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class CollapsibleSectionViewModel : IRdkViewModel
```

Derive from this class to implement your own view model that wraps around a built in implementation of IRdkViewModel. Use GetData etc to implement your properties.

## Constructors

- [CollapsibleSectionViewModel](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.controls.collapsiblesectionviewmodel/ctor.md): Construct from your section - the view model should be a member of the section

## Properties

- [CppPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.controls.collapsiblesectionviewmodel/cpppointer.md)

## Methods

- [Commit](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.controls.collapsiblesectionviewmodel/commit.md)
- [Discard](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.controls.collapsiblesectionviewmodel/discard.md)
- [GetData](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.controls.collapsiblesectionviewmodel/getdata.md): Call for an interface to data
- [UndoHelper](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.controls.collapsiblesectionviewmodel/undohelper.md): Helper function to ease the use of undo records
