Class SharedSubsetScrollAxis
SharedSubsetScrollAxis implements scrolling logic for both horizontal and vertical scrolling in a ScrollAxisControl that is embeded in a parent scroll axis control.
Logical units in the ScrollAxisBase are called "Lines". With the ScrollRows a line representes rows in a grid and with ScrollRows a line represents columns in a grid.
SharedSubsetScrollAxis supports pixel scrolling and calculates the total height or width of all lines.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.Scroll
Assembly: Syncfusion.GridCommon.WPF.dll
Syntax
public class SharedSubsetScrollAxis : PixelScrollAxis, IDisposable
Constructors
SharedSubsetScrollAxis(PixelScrollAxis, IScrollBar, ILineSizeHost)
Initializes a new instance of the SharedSubsetScrollAxis class.
Declaration
public SharedSubsetScrollAxis(PixelScrollAxis parentScrollAxis, IScrollBar scrollBar, ILineSizeHost scrollLinesHost)
Parameters
Type | Name | Description |
---|---|---|
PixelScrollAxis | parentScrollAxis | The parent scroll axis. |
IScrollBar | scrollBar | The scroll bar. |
ILineSizeHost | scrollLinesHost | The scroll lines host. |
Properties
DefaultLineSize
Gets or sets the default size of lines.
Declaration
public override double DefaultLineSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default size of lines. |
Overrides
Distances
Gets the distances collection which is used internally for mapping from a point position to a line index and vice versa.
Declaration
public DistanceCounterSubset Distances { get; }
Property Value
Type | Description |
---|---|
DistanceCounterSubset | The distances collection. |
StartLineIndex
Gets or sets the index of the first line in a parent axis. This is used for shared or nested scroll axis (e.g. a nested grid with shared axis in a covered cell).
Declaration
public override int StartLineIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The index of the first line.. |
Overrides
Methods
GetLineSize(Int32, out Int32)
Gets size from ScrollLinesHost or if the line is being resized then get temporary value previously set with SetLineResize(Int32, Double)
Declaration
public override double GetLineSize(int index, out int repeatSizeCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
System.Int32 | repeatSizeCount | The number of subsequent values with same size. |
Returns
Type |
---|
System.Double |
Overrides
ResetLineResize()
Resets temporary value for line size after a resize operation
Declaration
public override void ResetLineResize()
Overrides
SetLineResize(Int32, Double)
Set temporary value for a line size during a resize operation without commiting value to SrollLinesHost.
Declaration
public override void SetLineResize(int index, double size)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
System.Double | size | The size. |