Interface · Components
NumericUpDownProps
Properties accepted by the NumericUpDown component.
@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43Members
allowDrop
allowDrop?: booleanAllows native drag data to be dropped on this control.
Default: false · Inherited
Type: boolean
automationName
automationName?: stringAccessible automation name exposed to assistive technology and test drivers.
Inherited
Type: string
background
background?: stringBackground brush or color value.
Inherited
Type: string
canvasLeft
canvasLeft?: numberCanvas left coordinate when parented by Canvas.
Default: "NaN" · Inherited
Type: number
canvasTop
canvasTop?: numberCanvas top coordinate when parented by Canvas.
Default: "NaN" · Inherited
Type: number
capturePointerOnPress
capturePointerOnPress?: booleanCaptures a pressed pointer until release, cancellation, unmount, or disposal.
Default: false · Inherited
Type: boolean
classes
classes?: readonly string[]Avalonia style classes applied to the native control.
Inherited
Type: readonly string[]
cornerRadius
cornerRadius?: numberRadius applied to the control corners.
Default: 0 · Inherited
Type: number
dock
dock?: DockEdge used when the control is placed in a DockPanel.
Default: "left" · Values: "left", "top", "right", "bottom" · Inherited
Type: Dock
fontFamily
fontFamily?: stringFont family used to render text.
Inherited
Type: string
fontSize
fontSize?: numberFont size in device-independent pixels.
Default: "NaN" · Inherited
Type: number
fontStyle
fontStyle?: "normal" | "italic"Normal or italic font style.
Default: "normal" · Values: "normal", "italic" · Inherited
Type: "normal" | "italic"
fontWeight
fontWeight?: FontWeightWeight used to render text.
Default: "normal" · Values: "normal", "medium", "semibold", "bold" · Inherited
Type: FontWeight
foreground
foreground?: stringForeground brush or color used to render content.
Inherited
Type: string
gridColumn
gridColumn?: numberZero-based column index when the control is placed in a Grid.
Default: 0 · Inherited
Type: number
gridColumnSpan
gridColumnSpan?: numberNumber of Grid columns occupied by the control.
Default: 1 · Inherited
Type: number
gridRow
gridRow?: numberZero-based row index when the control is placed in a Grid.
Default: 0 · Inherited
Type: number
gridRowSpan
gridRowSpan?: numberNumber of Grid rows occupied by the control.
Default: 1 · Inherited
Type: number
height
height?: numberPreferred control height in device-independent pixels.
Default: "NaN" · Inherited
Type: number
horizontalAlignment
horizontalAlignment?: HorizontalAlignmentHorizontal alignment within the parent layout slot.
Default: "stretch" · Values: "left", "center", "right", "stretch" · Inherited
Type: HorizontalAlignment
horizontalContentAlignment
horizontalContentAlignment?: HorizontalAlignmentHorizontal alignment of content inside the control.
Default: "center" · Values: "left", "center", "right", "stretch" · Inherited
Type: HorizontalAlignment
increment
increment?: numberStep applied when the numeric value is increased or decreased.
Default: 1
Type: number
isEnabled
isEnabled?: booleanWhether the control accepts user interaction.
Default: true · Inherited
Type: boolean
isVisible
isVisible?: booleanWhether the control participates in rendering and layout.
Default: true · Inherited
Type: boolean
margin
margin?: ThicknessSpace outside the control.
Default: 0 · Inherited
Type: Thickness
maxHeight
maxHeight?: numberMaximum permitted control height.
Default: "Infinity" · Inherited
Type: number
maximum
maximum?: numberMaximum value accepted by the control.
Default: 100
Type: number
maxWidth
maxWidth?: numberMaximum permitted control width.
Default: "Infinity" · Inherited
Type: number
minHeight
minHeight?: numberMinimum permitted control height.
Default: 0 · Inherited
Type: number
minimum
minimum?: numberMinimum value accepted by the control.
Default: 0
Type: number
minWidth
minWidth?: numberMinimum permitted control width.
Default: 0 · Inherited
Type: number
onDragOver
onDragOver?(event: DropEvent): DropEffectChooses the accepted native drag effect.
Inherited
onDrop
onDrop?(event: DropEvent): void | Promise<unknown>Receives normalized text and local-file drop data.
Inherited
onKeyDown
onKeyDown?(event: KeyEvent): booleanHandles a normalized key-down event.
Inherited
onKeyUp
onKeyUp?(event: KeyEvent): booleanHandles a normalized key-up event.
Inherited
onPointerCancel
onPointerCancel?(event: PointerEvent): booleanHandles cancellation or loss of an active pointer capture using its last known local state.
Inherited
onPointerDown
onPointerDown?(event: PointerEvent): booleanHandles a normalized pointer press.
Inherited
onPointerMove
onPointerMove?(event: PointerEvent): booleanHandles normalized pointer movement.
Inherited
onPointerUp
onPointerUp?(event: PointerEvent): booleanHandles a normalized pointer release.
Inherited
onValueChanged
onValueChanged?(value: number | null): void | Promise<unknown>Called after the control value changes.
opacity
opacity?: numberOpacity from zero (transparent) to one (opaque).
Default: 1 · Inherited
Type: number
padding
padding?: ThicknessSpace between the control border and its content.
Default: 0 · Inherited
Type: Thickness
ref
ref?: ControlRef<unknown>Receives the retained native control handle.
Inherited
Type: ControlRef<unknown>
textAlignment
textAlignment?: TextAlignmentHorizontal alignment of rendered text.
Default: "left" · Values: "left", "center", "right", "justify" · Inherited
Type: TextAlignment
toolTip
toolTip?: stringText shown when the pointer pauses over the control.
Inherited
Type: string
value
value?: number | nullCurrent value of the control.
Default: null
Type: number | null
verticalAlignment
verticalAlignment?: VerticalAlignmentVertical alignment within the parent layout slot.
Default: "stretch" · Values: "top", "center", "bottom", "stretch" · Inherited
Type: VerticalAlignment
verticalContentAlignment
verticalContentAlignment?: VerticalAlignmentVertical alignment of content inside the control.
Default: "center" · Values: "top", "center", "bottom", "stretch" · Inherited
Type: VerticalAlignment
width
width?: numberPreferred control width in device-independent pixels.
Default: "NaN" · Inherited
Type: number
Related symbols
Source
SharpTS.Gui.Sdk/GuiPackage/control-surface.generated.ts:245 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.