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

IRangeControlClient.SetSelectionRange(Object, Object, Size, Boolean) Method

Specifies the selected range.

Namespace: DevExpress.Xpf.Editors.RangeControl

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

bool SetSelectionRange(
    object selectionStart,
    object selectionEnd,
    Size viewportSize,
    bool isSnapped = true
)

#Parameters

Name Type Description
selectionStart Object

The start bound of a selection range.

selectionEnd Object

The start bound of a selection range.

viewportSize Size

The viewport size.

#Optional Parameters

Name Type Default Description
isSnapped Boolean True

true, to snap the range bounds to the bounds of range items; otherwise, false.

#Returns

Type Description
Boolean

true, if the specified range boundaries are valid; otherwise, false.

See Also