Share via


UISegmentedControl.GetContentOffset(IntPtr) Method

Definition

The offset used for drawing content in a specified segment.

[Foundation.Export("contentOffsetForSegmentAtIndex:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual CoreGraphics.CGSize GetContentOffset(IntPtr segment);
[<Foundation.Export("contentOffsetForSegmentAtIndex:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetContentOffset : nativeint -> CoreGraphics.CGSize
override this.GetContentOffset : nativeint -> CoreGraphics.CGSize

Parameters

segment
IntPtr

nativeint

The index of the segment to retrieve the content offset for.

Returns

The content offset.

Attributes

Remarks

The content offset is used for both text and image drawing within a segment.

Applies to