Class TreeDataRowBase
Represents a class that provides the base implementation of Data rows in SfTreeGrid.
Implements
Namespace: Syncfusion.UI.Xaml.TreeGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public abstract class TreeDataRowBase : Object, ITreeDataRowElement, IElement, INotifyPropertyChanged, IComparable, IDisposable
Constructors
TreeDataRowBase()
Declaration
protected TreeDataRowBase()
Properties
Element
Gets the framework element.
Declaration
public FrameworkElement Element { get; }
Property Value
Type |
---|
Microsoft.UI.Xaml.FrameworkElement |
HasChildNodes
Gets or sets a value indicating whether the DataRow has child nodes or not.
Declaration
public bool HasChildNodes { get; set; }
Property Value
Type |
---|
System.Boolean |
Index
Gets the Index.
Declaration
public int Index { get; }
Property Value
Type |
---|
System.Int32 |
IsCurrentRow
Gets or sets a value indicating whether is it current row or not.
Declaration
public bool IsCurrentRow { get; set; }
Property Value
Type |
---|
System.Boolean |
IsEditing
Gets or sets the value indicating whether the Datarow is in editing or not.
Declaration
public bool IsEditing { get; set; }
Property Value
Type |
---|
System.Boolean |
IsFocusedRow
Get or sets the value indicating row is focused or not.
Declaration
public bool IsFocusedRow { get; set; }
Property Value
Type |
---|
System.Boolean |
IsSelectedRow
Gets or sets a value indicating whether this row is selected or not
Declaration
public bool IsSelectedRow { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if this instance ; otherwise, false. |
Level
Gets or sets the level.
Declaration
public int Level { get; set; }
Property Value
Type |
---|
System.Int32 |
Node
Gets or sets the TreeNode.
Declaration
public TreeNode Node { get; set; }
Property Value
Type |
---|
TreeNode |
RowData
Gets or sets the Row data.
Declaration
public object RowData { get; set; }
Property Value
Type |
---|
System.Object |
RowElement
Gets or sets the Row element.
Declaration
protected TreeGridRowControlBase RowElement { get; set; }
Property Value
Type |
---|
TreeGridRowControlBase |
RowIndex
Gets or sets the Row index.
Declaration
public int RowIndex { get; }
Property Value
Type |
---|
System.Int32 |
RowType
Gets or sets the row type.
Declaration
public TreeRowType RowType { get; }
Property Value
Type |
---|
TreeRowType |
TreeGrid
Gets or sets the TreeGrid.
Declaration
protected SfTreeGrid TreeGrid { get; set; }
Property Value
Type |
---|
SfTreeGrid |
VisibleColumns
Get the List of DataColumnBase maintained in DataRow
Declaration
public List<TreeDataColumnBase> VisibleColumns { get; }
Property Value
Type |
---|
System.Collections.Generic.List<TreeDataColumnBase> |
Methods
ArrangeElement(Rect)
Positions child objects and determines a size for a UIElement.
Declaration
public virtual void ArrangeElement(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Rect | rect | The corresponding rectangle |
CollapseColumn(TreeDataColumnBase)
Collapses the specified column.
Declaration
protected virtual void CollapseColumn(TreeDataColumnBase column)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | column | The specified column. |
CompareTo(Object)
Compares this instance to a specified object.
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The specified object. |
Returns
Type | Description |
---|---|
System.Int32 | An integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object. |
Dispose()
Disposes all the resources used by the TreeDataRowBase class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the TreeDataRowBase class.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Indicates whether the call is from Dispose method or from a finalizer. |
GetColumnSize(Int32, Boolean)
Gets the column size.
Declaration
protected virtual double GetColumnSize(int index, bool lineNull)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The corresponding column index. |
System.Boolean | lineNull | Indicates whether to retrieve the size from the visible lines or from the range. |
Returns
Type |
---|
System.Double |
GetVisibleColumns()
Gets the list of visible columns.
Declaration
protected IList<ITreeDataColumnElement> GetVisibleColumns()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<ITreeDataColumnElement> | The list of visible columns. |
MeasureElement(Size)
Updates the DesiredSize of a UIElement.
Declaration
public virtual void MeasureElement(Size size)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Size | size | The corresponding size. |
OnCreateRowElement()
Invoked to create the row element.
Declaration
protected virtual TreeGridRowControlBase OnCreateRowElement()
Returns
Type | Description |
---|---|
TreeGridRowControlBase | The row. |
OnGenerateVisibleColumns(VisibleLinesCollection)
Generates the visible columns.
Declaration
protected abstract void OnGenerateVisibleColumns(VisibleLinesCollection visibleColumnLines)
Parameters
Type | Name | Description |
---|---|---|
VisibleLinesCollection | visibleColumnLines | The corresponding visible column lines. |
OnPropertyChanged(String)
Invoked when a property changes.
Declaration
public void OnPropertyChanged(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The corresponding property. |
OnRowIndexChanged()
Invoked when the row index changed.
Declaration
protected virtual void OnRowIndexChanged()
SetCellBindings(TreeDataColumnBase)
Sets the cell binding of the corresponding column.
Declaration
protected virtual void SetCellBindings(TreeDataColumnBase datacolumn)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | datacolumn | The corresponding column. |
SetRowBindings(TreeGridRowControl)
Sets the row binding for the specified row control.
Declaration
protected virtual void SetRowBindings(TreeGridRowControl rowControl)
Parameters
Type | Name | Description |
---|---|---|
TreeGridRowControl | rowControl | The specified row control. |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |