Class ObjectViewModel
A tree node that exposes an arbitrary object's public fields (and enumerable items) for
display in a hierarchical, lazily expanded property browser, with selection and expansion state.
Inheritance
ObjectViewModel
Assembly: Reportman.Drawing.dll
Syntax
public class ObjectViewModel : INotifyPropertyChanged
Constructors
View Source
ObjectViewModel(object)
Declaration
public ObjectViewModel(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Properties
View Source
Children
Declaration
public ReadOnlyCollection<ObjectViewModel> Children { get; }
Property Value
View Source
Info
Declaration
public FieldInfo Info { get; }
Property Value
View Source
IsExpanded
Declaration
public bool IsExpanded { get; set; }
Property Value
View Source
IsSelected
Declaration
public bool IsSelected { get; set; }
Property Value
View Source
Name
Declaration
public string Name { get; }
Property Value
View Source
ObjectInstance
Declaration
public object ObjectInstance { get; }
Property Value
View Source
Parent
Declaration
public ObjectViewModel Parent { get; }
Property Value
View Source
Type
Declaration
public string Type { get; }
Property Value
View Source
Value
Declaration
public string Value { get; }
Property Value
Methods
View Source
LoadChildren()
Declaration
public void LoadChildren()
View Source
NameContains(string)
Declaration
public bool NameContains(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|
Returns
View Source
OnPropertyChanged(string)
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
| Type |
Name |
Description |
| string |
propertyName |
|
View Source
ValueContains(string)
Declaration
public bool ValueContains(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|
Returns
Events
View Source
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Implements