Class EmptyLineSizeHost
Implements the ILineSizeHost interface for an empty collection that cannot be modified.
Inheritance
Namespace: Syncfusion.GridCommon.ScrollAxis
Assembly: Syncfusion.GridCommon.Portable.dll
Syntax
public class EmptyLineSizeHost : Object, ILineSizeHost, IDistancesHost, IDisposable
Constructors
EmptyLineSizeHost()
Initializes a new instance of the EmptyLineSizeHost class.
Declaration
public EmptyLineSizeHost()
Fields
Empty
Returns the empty collection.
Declaration
public static readonly EmptyLineSizeHost Empty
Field Value
Type |
---|
EmptyLineSizeHost |
Properties
Distances
Get's the distance position to an entity
Declaration
protected IDistanceCounterCollection Distances { get; }
Property Value
Type |
---|
IDistanceCounterCollection |
Methods
add_DefaultLineSizeChanged(DefaultLineSizeChangedEventHandler)
Declaration
protected void add_DefaultLineSizeChanged(DefaultLineSizeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
DefaultLineSizeChangedEventHandler | value |
add_LineHiddenChanged(HiddenRangeChangedEventHandler)
Declaration
protected void add_LineHiddenChanged(HiddenRangeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
HiddenRangeChangedEventHandler | value |
add_LinesInserted(LinesInsertedEventHandler)
Declaration
protected void add_LinesInserted(LinesInsertedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
LinesInsertedEventHandler | value |
add_LineSizeChanged(RangeChangedEventHandler)
Declaration
protected void add_LineSizeChanged(RangeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
RangeChangedEventHandler | value |
add_LinesRemoved(LinesRemovedEventHandler)
Declaration
protected void add_LinesRemoved(LinesRemovedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
LinesRemovedEventHandler | value |
Dispose()
Releases the managed and unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | if true - release both managed and unmanaged resources; if false - release only unmanaged resources. |
GetDefaultLineSize()
Returns the default line size.
Declaration
protected double GetDefaultLineSize()
Returns
Type | Description |
---|---|
System.Double | The default line size. |
GetFooterLineCount()
Gets the footer line count.
Declaration
protected int GetFooterLineCount()
Returns
Type | Description |
---|---|
System.Int32 | The footer line count. |
GetHeaderLineCount()
Gets the header line count.
Declaration
protected int GetHeaderLineCount()
Returns
Type | Description |
---|---|
System.Int32 | The header line count. |
GetHidden(Int32, out Int32)
Returns whether line is hidden at the given index range.
Declaration
protected bool GetHidden(int index, out int repeatValueCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the line. |
System.Int32 | repeatValueCount | The repeated value of the count. |
Returns
Type |
---|
System.Boolean |
GetLineCount()
Returns the line count.
Declaration
protected int GetLineCount()
Returns
Type | Description |
---|---|
System.Int32 | The line count. |
GetSize(Int32, out Int32)
Gets the size of the line at the given index.
Declaration
protected double GetSize(int index, out int repeatValueCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the line for which the size is to be obtained. |
System.Int32 | repeatValueCount | The number of subsequent values with same size. |
Returns
Type | Description |
---|---|
System.Double | The size of the line at the given index. |
InitializeScrollAxis(ScrollAxisBase)
Intializing the scroll axis.
Declaration
protected void InitializeScrollAxis(ScrollAxisBase scrollAxis)
Parameters
Type | Name | Description |
---|---|---|
ScrollAxisBase | scrollAxis | Implements the scroll logic whether in horizontal or vertical |
remove_DefaultLineSizeChanged(DefaultLineSizeChangedEventHandler)
Declaration
protected void remove_DefaultLineSizeChanged(DefaultLineSizeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
DefaultLineSizeChangedEventHandler | value |
remove_LineHiddenChanged(HiddenRangeChangedEventHandler)
Declaration
protected void remove_LineHiddenChanged(HiddenRangeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
HiddenRangeChangedEventHandler | value |
remove_LinesInserted(LinesInsertedEventHandler)
Declaration
protected void remove_LinesInserted(LinesInsertedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
LinesInsertedEventHandler | value |
remove_LineSizeChanged(RangeChangedEventHandler)
Declaration
protected void remove_LineSizeChanged(RangeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
RangeChangedEventHandler | value |
remove_LinesRemoved(LinesRemovedEventHandler)
Declaration
protected void remove_LinesRemoved(LinesRemovedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
LinesRemovedEventHandler | value |
Events
DefaultLineSizeChanged
Occurs when default line size changed.
Declaration
protected event DefaultLineSizeChangedEventHandler DefaultLineSizeChanged
Event Type
Type |
---|
DefaultLineSizeChangedEventHandler |
FooterLineCountChanged
Occurs when footer line count changed.
Declaration
protected event EventHandler FooterLineCountChanged
Event Type
Type |
---|
System.EventHandler |
HeaderLineCountChanged
Occurs when header line count changed.
Declaration
protected event EventHandler HeaderLineCountChanged
Event Type
Type |
---|
System.EventHandler |
LineCountChanged
Occurs when line count changed.
Declaration
protected event EventHandler LineCountChanged
Event Type
Type |
---|
System.EventHandler |
LineHiddenChanged
Occurs when hidden line changed.
Declaration
protected event HiddenRangeChangedEventHandler LineHiddenChanged
Event Type
Type |
---|
HiddenRangeChangedEventHandler |
LinesInserted
Occurs when lines are inserted.
Declaration
protected event LinesInsertedEventHandler LinesInserted
Event Type
Type |
---|
LinesInsertedEventHandler |
LineSizeChanged
Occurs when line size changed.
Declaration
protected event RangeChangedEventHandler LineSizeChanged
Event Type
Type |
---|
RangeChangedEventHandler |
LinesRemoved
Occurs when lines are removed.
Declaration
protected event LinesRemovedEventHandler LinesRemoved
Event Type
Type |
---|
LinesRemovedEventHandler |
Explicit Interface Implementations
IDistancesHost.Distances
Gets an object that implements the Distances property.
Declaration
IDistanceCounterCollection IDistancesHost.Distances { get; }
Returns
Type |
---|
IDistanceCounterCollection |
ILineSizeHost.add_DefaultLineSizeChanged(DefaultLineSizeChangedEventHandler)
Declaration
void ILineSizeHost.add_DefaultLineSizeChanged(DefaultLineSizeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
DefaultLineSizeChangedEventHandler | value |
ILineSizeHost.add_LineHiddenChanged(HiddenRangeChangedEventHandler)
Declaration
void ILineSizeHost.add_LineHiddenChanged(HiddenRangeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
HiddenRangeChangedEventHandler | value |
ILineSizeHost.add_LinesInserted(LinesInsertedEventHandler)
Declaration
void ILineSizeHost.add_LinesInserted(LinesInsertedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
LinesInsertedEventHandler | value |
ILineSizeHost.add_LineSizeChanged(RangeChangedEventHandler)
Declaration
void ILineSizeHost.add_LineSizeChanged(RangeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
RangeChangedEventHandler | value |
ILineSizeHost.add_LinesRemoved(LinesRemovedEventHandler)
Declaration
void ILineSizeHost.add_LinesRemoved(LinesRemovedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
LinesRemovedEventHandler | value |
ILineSizeHost.FooterLineCountChanged
Occurs when footer line count changed.
Declaration
event EventHandler ILineSizeHost.FooterLineCountChanged
Returns
Type |
---|
System.EventHandler |
ILineSizeHost.GetDefaultLineSize()
Returns the default line size.
Declaration
double ILineSizeHost.GetDefaultLineSize()
Returns
Type | Description |
---|---|
System.Double | The default line size. |
ILineSizeHost.GetFooterLineCount()
Gets the footer line count.
Declaration
int ILineSizeHost.GetFooterLineCount()
Returns
Type | Description |
---|---|
System.Int32 | The footer line count. |
ILineSizeHost.GetHeaderLineCount()
Gets the header line count.
Declaration
int ILineSizeHost.GetHeaderLineCount()
Returns
Type | Description |
---|---|
System.Int32 | The header line count. |
ILineSizeHost.GetHidden(Int32, out Int32)
Gets the boolean value indicating the hidden state for the line with given index.
Declaration
bool ILineSizeHost.GetHidden(int index, out int repeatValueCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the line for which the hidden state is to be obtained. |
System.Int32 | repeatValueCount | The number of subsequent lines with same state. |
Returns
Type | Description |
---|---|
System.Boolean | The boolean value indicating the hidden state for a line. |
ILineSizeHost.GetLineCount()
Returns the line count.
Declaration
int ILineSizeHost.GetLineCount()
Returns
Type | Description |
---|---|
System.Int32 | The line count. |
ILineSizeHost.GetSize(Int32, out Int32)
Gets the size of the line at the given index.
Declaration
double ILineSizeHost.GetSize(int index, out int repeatValueCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the line for which the size is to be obtained. |
System.Int32 | repeatValueCount | The number of subsequent values with same size. |
Returns
Type | Description |
---|---|
System.Double | The size of the line at the given index. |
ILineSizeHost.HeaderLineCountChanged
Occurs when header line count changed.
Declaration
event EventHandler ILineSizeHost.HeaderLineCountChanged
Returns
Type |
---|
System.EventHandler |
ILineSizeHost.InitializeScrollAxis(ScrollAxisBase)
Initializes the scroll axis.
Declaration
void ILineSizeHost.InitializeScrollAxis(ScrollAxisBase scrollAxis)
Parameters
Type | Name | Description |
---|---|---|
ScrollAxisBase | scrollAxis | The scroll axis. |
ILineSizeHost.LineCountChanged
Occurs when line count changed.
Declaration
event EventHandler ILineSizeHost.LineCountChanged
Returns
Type |
---|
System.EventHandler |
ILineSizeHost.remove_DefaultLineSizeChanged(DefaultLineSizeChangedEventHandler)
Declaration
void ILineSizeHost.remove_DefaultLineSizeChanged(DefaultLineSizeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
DefaultLineSizeChangedEventHandler | value |
ILineSizeHost.remove_LineHiddenChanged(HiddenRangeChangedEventHandler)
Declaration
void ILineSizeHost.remove_LineHiddenChanged(HiddenRangeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
HiddenRangeChangedEventHandler | value |
ILineSizeHost.remove_LinesInserted(LinesInsertedEventHandler)
Declaration
void ILineSizeHost.remove_LinesInserted(LinesInsertedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
LinesInsertedEventHandler | value |
ILineSizeHost.remove_LineSizeChanged(RangeChangedEventHandler)
Declaration
void ILineSizeHost.remove_LineSizeChanged(RangeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
RangeChangedEventHandler | value |
ILineSizeHost.remove_LinesRemoved(LinesRemovedEventHandler)
Declaration
void ILineSizeHost.remove_LinesRemoved(LinesRemovedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
LinesRemovedEventHandler | value |