RepositoryItemPageNumberEdit Class
Stores settings specific to the PageNumberEdit control.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraBars.v24.2.dll
Declaration
public class RepositoryItemPageNumberEdit :
RepositoryItemTextEdit,
ISupportsHeightFitting,
ISupportAutoWidth
Remarks
The RepositoryItemPageNumberEdit class provides properties and events specific to the PageNumberEdit control. The control can be displayed in the navigation section of a menu bar or ribbon to allow an end-user to enter the required page number. The control only accepts digits and displays the default caption containing the maximum page number. See an example below.
The settings provided by the RepositoryItemPageNumberEdit class include:
- the RepositoryItemPageNumberEdit.TotalPageCount property specifies the maximum page number. The edit value cannot exceed the maximum value;
- the RepositoryItemPageNumberEdit.LabelFormat property specifies the editor caption. The default caption is “of [maximum page number]“;
- the RepositoryItemPageNumberEdit.Orientation property specifies whether the edit control is vertically or horizontally oriented. The orientation affects the location of the caption relative to the edit box.
You can add the control to a menu bar or ribbon in Visual Studio Designer as shown in the figure below.
Inheritance
Object
MarshalByRefObject
Component
DevExpress.XtraEditors.ComponentBase
RepositoryItem
RepositoryItemTextEdit
RepositoryItemPageNumberEdit
See Also