Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavigatorButtonsBase.CheckSize(ref Size) Method

Specifies the control’s size.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void CheckSize(
    ref Size size
)

#Parameters

Name Type Description
size Size

The System.Drawing.Size object representing the control’s size.

#Remarks

The CheckSize method calculates the size of all elements displayed in the control. If the control’s size extends the total size of its elements, this method enlarges the sizes of the latter so that they fit the control in the best way possible. Otherwise, if the control’s size is less than total element size, the method examines whether the control’s size extends its minimum. If it does, the control element’s size is automatically decreased. Otherwise, the control’s Size property is set to the NavigatorBase.MinSize property value.

This method is used by the data navigator internally each time its size changes. Generally, you will have no need to use it in your code.

See Also