MACaptionAppearance.ExecuteCallbackForProfile(String, Action) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.