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

将重新绘制的层。

属性

适用于