共用方式為


CALayerDelegate_Extensions.WillDrawLayer(ICALayerDelegate, CALayer) 方法

定義

即將繪製時 layer 呼叫的方法。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void WillDrawLayer (this CoreAnimation.ICALayerDelegate This, CoreAnimation.CALayer layer);
static member WillDrawLayer : CoreAnimation.ICALayerDelegate * CoreAnimation.CALayer -> unit

參數

This
ICALayerDelegate

這個擴充方法運作所在的 實例。

layer
CALayer

將重新繪製的圖層。

屬性

適用於