menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeViewColumn - API Reference

    Show / Hide Table of Contents

    Class TreeViewColumn

    Class represents the TreeView Column

    Inheritance
    System.Object
    TreeViewColumn
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class TreeViewColumn : DependencyObject, INotifyPropertyChanged

    Constructors

    TreeViewColumn()

    Initializes a new instance of the TreeViewColumn class.

    Declaration
    public TreeViewColumn()

    Fields

    CellTemplateProperty

    Identifies CellTemplate dependency property of the TreeViewColumn.

    Declaration
    public static readonly DependencyProperty CellTemplateProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    CellTemplateSelectorProperty

    Identifies CellTemplateSelector dependency property of the TreeViewColumn.

    Declaration
    public static readonly DependencyProperty CellTemplateSelectorProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ColumnHeaderTemplateProperty

    Identifies CellTemplate dependency property of the TreeViewColumn.

    Declaration
    public static readonly DependencyProperty ColumnHeaderTemplateProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ColumnHeaderTemplateSelectorProperty

    Identifies CellTemplateSelector dependency property of the TreeViewColumn.

    Declaration
    public static readonly DependencyProperty ColumnHeaderTemplateSelectorProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ContentAlignmentProperty

    Declaration
    public static readonly DependencyProperty ContentAlignmentProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    HeaderContentAlignmentProperty

    Declaration
    public static readonly DependencyProperty HeaderContentAlignmentProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    HeaderProperty

    Identifies Header dependency property of the TreeViewColumn.

    Declaration
    public static readonly DependencyProperty HeaderProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsColumnDragDataEnabledProperty

    Identifies IsColumnDragDataEnabled dependency property of the TreeViewColumn.

    Declaration
    public static readonly DependencyProperty IsColumnDragDataEnabledProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsSortingEnabledOnHeaderClickProperty

    Identifies IsSortingEnabledOnHeaderClick dependency property of the TreeViewColumn.

    Declaration
    public static readonly DependencyProperty IsSortingEnabledOnHeaderClickProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    MinWidthProperty

    Identifies MinWidth dependency property of the TreeViewColumn.

    Declaration
    public static readonly DependencyProperty MinWidthProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SortByProperty

    Declaration
    public static readonly DependencyProperty SortByProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    StateProperty

    Declaration
    public static readonly DependencyProperty StateProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    WidthProperty

    Identifies Width dependency property of the TreeViewColumn.

    Declaration
    public static readonly DependencyProperty WidthProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    ActualWidth

    Gets the actual width.

    Declaration
    public double ActualWidth { get; }
    Property Value
    Type Description
    System.Double

    The actual width.

    CellTemplate

    Gets or sets the cell template.

    Declaration
    public DataTemplate CellTemplate { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    The cell template.

    CellTemplateSelector

    Gets or sets the cell template selector.

    Declaration
    public DataTemplateSelector CellTemplateSelector { get; set; }
    Property Value
    Type Description
    System.Windows.Controls.DataTemplateSelector

    The cell template selector.

    ColumnHeaderTemplate

    Gets or sets the column header template.

    Declaration
    public DataTemplate ColumnHeaderTemplate { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    The column header template.

    ColumnHeaderTemplateSelector

    Gets or sets the column header template selector.

    Declaration
    public DataTemplateSelector ColumnHeaderTemplateSelector { get; set; }
    Property Value
    Type Description
    System.Windows.Controls.DataTemplateSelector

    The column header template selector.

    ContentAlignment

    Tree view content alignment

    Declaration
    public HorizontalAlignment ContentAlignment { get; set; }
    Property Value
    Type Description
    System.Windows.HorizontalAlignment

    DisplayMemberBinding

    Gets or sets the display member binding.

    Declaration
    public BindingBase DisplayMemberBinding { get; set; }
    Property Value
    Type Description
    System.Windows.Data.BindingBase

    The display member binding.

    Header

    Gets or sets the header.

    Declaration
    public object Header { get; set; }
    Property Value
    Type Description
    System.Object

    The header.

    HeaderContentAlignment

    treeview column header content alignment

    Declaration
    public HorizontalAlignment HeaderContentAlignment { get; set; }
    Property Value
    Type Description
    System.Windows.HorizontalAlignment

    IsColumnDragDataEnabled

    Gets or sets a value indicating whether this instance is column drag data enabled.

    Declaration
    public bool IsColumnDragDataEnabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is column drag data enabled; otherwise, false.

    IsSortingEnabledOnHeaderClick

    Gets or sets a value indicating whether this instance is sorting enabled on header click.

    Declaration
    public bool IsSortingEnabledOnHeaderClick { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is sorting enabled on header click; otherwise, false.

    MinWidth

    Gets or sets the width of the min.

    Declaration
    public double MinWidth { get; set; }
    Property Value
    Type Description
    System.Double

    The width of the min.

    SortBy

    Field name have to give for sortby

    Declaration
    public string SortBy { get; set; }
    Property Value
    Type Description
    System.String

    State

    Gets or sets the Column measure state

    Declaration
    public ColumnMeasureState State { get; set; }
    Property Value
    Type Description
    ColumnMeasureState

    Width

    Gets or sets the width.

    Declaration
    public GridLength Width { get; set; }
    Property Value
    Type Description
    System.Windows.GridLength

    The width.

    Methods

    OnContentAlignmentChanged(DependencyPropertyChangedEventArgs)

    contentalignment method will called when contentalignment value changes

    Declaration
    protected void OnContentAlignmentChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnHeaderContentAlignmentChanged(DependencyPropertyChangedEventArgs)

    method will called when headercontentalignment value changes

    Declaration
    protected void OnHeaderContentAlignmentChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnPropertyChanged(PropertyChangedEventArgs)

    Raises the PropertyChanged event.

    Declaration
    protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.ComponentModel.PropertyChangedEventArgs e

    The System.ComponentModel.PropertyChangedEventArgs instance containing the event data.

    OnSortByChanged(DependencyPropertyChangedEventArgs)

    sortybychanged method will called when sortby value changes

    Declaration
    protected void OnSortByChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnStateChanged(DependencyPropertyChangedEventArgs)

    method will called when state value changes

    Declaration
    protected void OnStateChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    Events

    ContentAlignmentChanged

    Invokes when property for ContentAlignment changed.

    Declaration
    public event PropertyChangedCallback ContentAlignmentChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    HeaderContentAlignmentChanged

    Invokes when property for HeaderContentAlignmentChanged.

    Declaration
    public event PropertyChangedCallback HeaderContentAlignmentChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    PropertyChanged

    Occurs when a property value changes.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    SortByChanged

    Invokes when property for SortByChanged.

    Declaration
    public event PropertyChangedCallback SortByChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    StateChanged

    Invokes when property for StateChanged.

    Declaration
    public event PropertyChangedCallback StateChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved