---
title: "setFloatValue:knobProportion:"
framework: AppKit
role: symbol
role_heading: Instance Method
platforms: [macOS 10.0+]
path: "appkit/nsscroller/setfloatvalue:knobproportion:"
---

# setFloatValue:knobProportion:

Sets the position of the knob to aFloat, which is a value from 0.0 (indicating the top or left end) to 1.0 (the bottom or right end).

## Declaration

```occ
- (void) setFloatValue:(float) value knobProportion:(CGFloat) proportion;
```

## Discussion

Discussion Also sets the proportion of the knob slot filled by the knob to knobProp, also a value from 0.0 (minimal size) to 1.0 (fills the slot).

## See Also

### Related Documentation

- [knobProportion](appkit/nsscroller/knobproportion.md)
- [floatValue](appkit/nscontrol/floatvalue.md)

### Deprecated methods

- [scrollerWidth](appkit/nsscroller/scrollerwidth.md)
- [scrollerWidthForControlSize:](appkit/nsscroller/scrollerwidthforcontrolsize:.md)
- [drawArrow(_:highlight:)](appkit/nsscroller/drawarrow(_:highlight:).md)
- [drawParts](appkit/nsscroller/drawparts.md)
- [highlight(_:)](appkit/nsscroller/highlight(_:).md)
- [trackScrollButtons(with:)](appkit/nsscroller/trackscrollbuttons(with:).md)
