편집

다음을 통해 공유


UISegmentedControl.ContentPositionAdjustment Method

Definition

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.

Applies to