Class NumericButton
A customized view that reacts to touch events.
Inheritance
Namespace: Syncfusion.SfDataGrid.DataPager
Assembly: Syncfusion.SfDataGrid.iOS.dll
Syntax
public class NumericButton : PanelElement
Constructors
NumericButton()
Initializes a new instance of the NumericButton class.
Declaration
public NumericButton()
NumericButton(CGRect)
Initializes a new instance of the NumericButton class.
Declaration
public NumericButton(CGRect rect)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGRect | rect | The CoreGraphics.CGRect. |
NumericButton(IntPtr)
Initializes a new instance of the NumericButton class.
Declaration
public NumericButton(IntPtr ptr)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | ptr | The System.IntPtr. |
Properties
EllipsisPosition
Gets or sets the EllipsisPosition of the numeric button, the ellipsis position may be in the left or right or both ends of the SfDataPager based on the AutoEllipsisMode.
Declaration
public EllipsisPosition EllipsisPosition { get; set; }
Property Value
Type | Description |
---|---|
EllipsisPosition | The EllipsisPosition of the numeric button. |
IsButtonEnabled
Gets or sets a value indicating whether to enable/disable the NumericButton.
Declaration
public bool IsButtonEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True, if the button is enabled, otherwise false. The default value is true. |
IsCurrentPage
Gets or sets a value indicating whether the page is current page or not.
Declaration
public bool IsCurrentPage { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The boolean value denoting whether the page is current page or not. |
IsEllipsisElement
Gets or sets a value indicating whether the numeric button is a ellipsis element or not. By default, all the numeric buttons in the page will be in view. However, the user can set auto ellipsis mode by using AutoEllipsisMode property, by which the numeric button will be displayed as the ellipsis element.
Declaration
public bool IsEllipsisElement { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The boolean value indicating whether the numeric button is a ellipsis element or not. |
NavigationButtons
Gets or sets the navigation buttons, which are used to navigate through pages.
Declaration
public NavigationButtons NavigationButtons { get; set; }
Property Value
Type | Description |
---|---|
NavigationButtons | The navigation buttons, which are used to navigate through pages. |
PageIndex
Gets or sets the current page index of the SfDataPager.
Declaration
public int PageIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The current page index of the SfDataPager. |
Methods
AwakeFromNib()
Called after the object has loaded from the Nib file.
Declaration
public override void AwakeFromNib()
Overrides
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected override 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. |
LayoutSubviews()
Layouts the children in the view.
Declaration
public override void LayoutSubviews()
SetAsCurrentPage()
Sets current page based on selection, whether selected element is ellipsis or numeric button.
Declaration
public void SetAsCurrentPage()