Class TreeGridPanel
Inheritance
System.Object
TreeGridPanel
Implements
System.Windows.Controls.Primitives.IScrollInfo
System.IDisposable
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class TreeGridPanel : Panel, IScrollableInfo, IScrollInfo, IDisposable
Constructors
TreeGridPanel()
Declaration
Properties
Gets or sets a value indicating whether the scrollbar can be horizontally scrolled or not.
Declaration
public bool CanHorizontallyScroll { get; set; }
Property Value
Gets or sets a value indicating whether the scrollbar can be vertically scrolled or not.
Declaration
public bool CanVerticallyScroll { get; set; }
Property Value
ColumnCount
Declaration
public int ColumnCount { get; set; }
Property Value
ColumnWidths
Declaration
public IPaddedEditableLineSizeHost ColumnWidths { get; }
Property Value
ExtentHeight
Declaration
public double ExtentHeight { get; }
Property Value
ExtentWidth
Declaration
public double ExtentWidth { get; }
Property Value
Declaration
public int FooterColumns { get; set; }
Property Value
Declaration
public int FooterRows { get; set; }
Property Value
FrozenColumns
Declaration
public int FrozenColumns { get; set; }
Property Value
FrozenRows
Declaration
public int FrozenRows { get; set; }
Property Value
HorizontalOffset
Gets the Horizontal offset.
Declaration
public double HorizontalOffset { get; }
Property Value
HorizontalPadding
Declaration
public double HorizontalPadding { get; set; }
Property Value
Declaration
public bool HorizontalPixelScroll { get; set; }
Property Value
Declaration
public ScrollInfo HScrollBar { get; }
Property Value
RowCount
Declaration
public int RowCount { get; set; }
Property Value
RowGenerator
Declaration
public ITreeGridRowGenerator RowGenerator { get; }
Property Value
RowHeights
Declaration
public IPaddedEditableLineSizeHost RowHeights { get; }
Property Value
Declaration
public ScrollableContentViewer ScrollableOwner { get; set; }
Property Value
Declaration
public ScrollAxisBase ScrollColumns { get; }
Property Value
Gets or sets the scroll viewer.
Declaration
public ScrollViewer ScrollOwner { get; set; }
Property Value
Type |
System.Windows.Controls.ScrollViewer |
Declaration
public ScrollAxisBase ScrollRows { get; }
Property Value
VerticalOffset
Gets the vertical offset.
Declaration
public double VerticalOffset { get; }
Property Value
VerticalPadding
Declaration
public double VerticalPadding { get; set; }
Property Value
Declaration
public bool VerticalPixelScroll { get; set; }
Property Value
ViewportHeight
Gets the height of view port.
Declaration
public double ViewportHeight { get; }
Property Value
ViewportWidth
Gets the width of view port.
Declaration
public double ViewportWidth { get; }
Property Value
Declaration
public ScrollInfo VScrollBar { get; }
Property Value
Methods
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type |
Name |
Description |
System.Windows.Size |
finalSize |
|
Returns
Declaration
protected virtual ScrollAxisBase CreateScrollAxis(Orientation orientation, bool pixelScroll, IScrollBar scrollBar, ILineSizeHost lineSizes)
Parameters
Type |
Name |
Description |
System.Windows.Controls.Orientation |
orientation |
|
System.Boolean |
pixelScroll |
|
IScrollBar |
scrollBar |
|
ILineSizeHost |
lineSizes |
|
Returns
Dispose()
Declaration
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
Type |
Name |
Description |
System.Boolean |
isDisposing |
Indicates whether the call is from Dispose method or from a finalizer.
|
InsertColumns(Int32, Int32)
Declaration
public void InsertColumns(int insertAtColumnIndex, int count)
Parameters
Type |
Name |
Description |
System.Int32 |
insertAtColumnIndex |
|
System.Int32 |
count |
|
InsertRows(Int32, Int32)
Declaration
public void InsertRows(int insertAtRowIndex, int count)
Parameters
Type |
Name |
Description |
System.Int32 |
insertAtRowIndex |
|
System.Int32 |
count |
|
InvalidateMeasureInfo()
Invalidates the measurement.
Declaration
public void InvalidateMeasureInfo()
LineDown()
Scrolls the ScrollViewer content downward by one line.
Declaration
LineLeft()
Scrolls the ScrollViewer content to the left by a predetermined amount.
Declaration
LineRight()
Scrolls the ScrollViewer content to the right by a predetermined amount.
Declaration
LineUp()
Scrolls the ScrollViewer content upward by one line.
Declaration
Declaration
public Rect MakeVisible(Visual visual, Rect rectangle)
Parameters
Type |
Name |
Description |
System.Windows.Media.Visual |
visual |
|
System.Windows.Rect |
rectangle |
|
Returns
MakeVisible(UIElement, Rect)
Forces content to scroll until the coordinate space of a Visual object is visible.
Declaration
public Rect MakeVisible(UIElement visual, Rect rectangle)
Parameters
Type |
Name |
Description |
System.Windows.UIElement |
visual |
The visual that becomes visible.
|
System.Windows.Rect |
rectangle |
The bounding rectangle that identifies the coordinate space to make visible.
|
Returns
Type |
Description |
System.Windows.Rect |
A rectangle that represents the visible region.
|
MeasureOverride(Size)
Provides the behaviour for the "Measure" pass of the layout cycle.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
Type |
Name |
Description |
System.Windows.Size |
constraint |
The available size that this object can give to child objects.Infinity can be specified as a value to indicate that the object will to size whatever the content is available.
|
Returns
Type |
Description |
System.Windows.Size |
The Size that this object determines it needs during layout,based on its calculations of the allocated sizes for child objects or based on other considerations such as a fixed container size.
|
MouseWheelDown()
Invoked to scroll downwards.
Declaration
public void MouseWheelDown()
MouseWheelLeft()
Invoked to scroll leftwards.
Declaration
public void MouseWheelLeft()
MouseWheelRight()
Invoked to scroll rightwards.
Declaration
public void MouseWheelRight()
MouseWheelUp()
Invoked to scroll upwards.
Declaration
public void MouseWheelUp()
OnCreateColumnWidths()
Declaration
protected virtual IPaddedEditableLineSizeHost OnCreateColumnWidths()
Returns
OnCreateRowHeights()
Declaration
protected virtual IPaddedEditableLineSizeHost OnCreateRowHeights()
Returns
Called when the System.Windows.UIElement.ManipulationBoundaryFeedback event occurs.
Declaration
protected override void OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.ManipulationBoundaryFeedbackEventArgs |
e |
The data for the event.
|
PageDown()
Scrolls the ScrollViewer content downward by one page.
Declaration
PageLeft()
Scrolls the ScrollViewer content to the left by one page.
Declaration
Scrolls the ScrollViewer content to the right by one page.
Declaration
PageUp()
Scrolls the ScrollViewer content upward by one page.
Declaration
PointToCellRowColumnIndex(Point, Boolean)
Determines the cell under the mouse location.
Declaration
public RowColumnIndex PointToCellRowColumnIndex(Point p, bool allowOutSideLines = false)
Parameters
Type |
Name |
Description |
System.Windows.Point |
p |
The point in client coordinates.
|
System.Boolean |
allowOutSideLines |
|
Returns
Type |
Description |
RowColumnIndex |
The cells row and column index under the mouse location.
|
Declaration
public Rect RangeToRect(ScrollAxisRegion rowRegion, ScrollAxisRegion columnRegion, RowColumnIndex rowcolumn, bool allowEstimatesForOutOfViewRows, bool allowEstimatesForOutOfViewColumns)
Parameters
Type |
Name |
Description |
ScrollAxisRegion |
rowRegion |
Scroll axis region for row.
|
ScrollAxisRegion |
columnRegion |
Scroll axis region for column.
|
RowColumnIndex |
rowcolumn |
TheRowColumnIndex.
|
System.Boolean |
allowEstimatesForOutOfViewRows |
If set to true, allows estimate for out of view rows.
|
System.Boolean |
allowEstimatesForOutOfViewColumns |
If set to true, allows estimate for out of view columns.
|
Returns
Type |
Description |
System.Windows.Rect |
Visible rectangle for the given range.
|
RemoveColumns(Int32, Int32)
Declaration
public void RemoveColumns(int removeAtColumnIndex, int count)
Parameters
Type |
Name |
Description |
System.Int32 |
removeAtColumnIndex |
|
System.Int32 |
count |
|
RemoveRows(Int32, Int32)
Declaration
public void RemoveRows(int removeAtRowIndex, int count)
Parameters
Type |
Name |
Description |
System.Int32 |
removeAtRowIndex |
|
System.Int32 |
count |
|
SetHorizontalOffset(Double)
Sets the Horizontal offset value.
Declaration
public void SetHorizontalOffset(double offset)
Parameters
Type |
Name |
Description |
System.Double |
offset |
|
SetVerticalOffset(Double)
Sets the Vertical offset value.
Declaration
public void SetVerticalOffset(double offset)
Parameters
Type |
Name |
Description |
System.Double |
offset |
The corresponding offset.
|
UpdateAxis(Size)
Updates available size to Renderer
Declaration
public void UpdateAxis(Size availableSize)
Parameters
Type |
Name |
Description |
System.Windows.Size |
availableSize |
The available size
|
Implements
System.Windows.Controls.Primitives.IScrollInfo
System.IDisposable