UISegmentedControl.ContentPositionAdjustment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the offset for the content of a given segment for the specified bar metrics.
[Foundation.Export("contentPositionAdjustmentForSegmentType:barMetrics:")]
public virtual UIKit.UIOffset ContentPositionAdjustment (UIKit.UISegmentedControlSegment leftCenterRightOrAlone, UIKit.UIBarMetrics barMetrics);
abstract member ContentPositionAdjustment : UIKit.UISegmentedControlSegment * UIKit.UIBarMetrics -> UIKit.UIOffset
override this.ContentPositionAdjustment : UIKit.UISegmentedControlSegment * UIKit.UIBarMetrics -> UIKit.UIOffset
Parameters
- leftCenterRightOrAlone
- UISegmentedControlSegment
The segment to return the offset for.
- barMetrics
- UIBarMetrics
The bar metrics to return the offset for.
Returns
The content offset for the segment.
- Attributes
Remarks
This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.