MACaptionAppearance.ExecuteCallbackForProfile(String, Action) Method

Definition

Execute a callback as if the specified profile was the currently active profile.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)]
public static void ExecuteCallbackForProfile(string profileId, Action callback);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)>]
static member ExecuteCallbackForProfile : string * Action -> unit

Parameters

profileId
String

The identifier for the profile that will be active when the callback is executed.

callback
Action

The callback to call with the specified profile as the currently active profile.

Attributes

Remarks

This method can be used to get the fonts and colors for a profile without changing the currently selected profile.

Applies to