Upravit

Sdílet prostřednictvím


UISegmentedControl.SetContentPositionAdjustment Method

Definition

Sets the offset for the content of a given segment for the specified bar metrics.

[Foundation.Export("setContentPositionAdjustment:forSegmentType:barMetrics:")]
public virtual void SetContentPositionAdjustment (UIKit.UIOffset adjustment, UIKit.UISegmentedControlSegment leftCenterRightOrAlone, UIKit.UIBarMetrics barMetrics);
abstract member SetContentPositionAdjustment : UIKit.UIOffset * UIKit.UISegmentedControlSegment * UIKit.UIBarMetrics -> unit
override this.SetContentPositionAdjustment : UIKit.UIOffset * UIKit.UISegmentedControlSegment * UIKit.UIBarMetrics -> unit

Parameters

adjustment
UIOffset

The UIOffset to set.

leftCenterRightOrAlone
UISegmentedControlSegment

The segment identifier to apply the offset to.

barMetrics
UIBarMetrics

To bar metrics to set the postion offset for.

Attributes

Remarks

This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.

Applies to