Share via


UISegmentedControl.UISegmentedControlAppearance.SetTitleTextAttributes Method

Definition

Overloads

Name Description
SetTitleTextAttributes(NSDictionary, UIControlState)
SetTitleTextAttributes(UIStringAttributes, UIControlState)

Sets the rendering text attributes for a specific state in the control.

SetTitleTextAttributes(NSDictionary, UIControlState)

[Foundation.Export("setTitleTextAttributes:forState:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SetTitleTextAttributes(Foundation.NSDictionary? attributes, UIKit.UIControlState state);
[<Foundation.Export("setTitleTextAttributes:forState:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetTitleTextAttributes : Foundation.NSDictionary * UIKit.UIControlState -> unit
override this.SetTitleTextAttributes : Foundation.NSDictionary * UIKit.UIControlState -> unit

Parameters

attributes
NSDictionary
Attributes

Applies to

SetTitleTextAttributes(UIStringAttributes, UIControlState)

Sets the rendering text attributes for a specific state in the control.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public void SetTitleTextAttributes(UIKit.UIStringAttributes? attributes, UIKit.UIControlState state);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.SetTitleTextAttributes : UIKit.UIStringAttributes * UIKit.UIControlState -> unit

Parameters

attributes
UIStringAttributes

rendering attributes for the text.

state
UIControlState

The state to alter

Attributes

Remarks

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

Applies to