Canvas.GetLayoutClip(Size) 方法

定义

返回一个剪裁几何图形,它指示当 ClipToBounds 属性设置为 true 时要剪裁的区域。Returns a clipping geometry that indicates the area that will be clipped if the ClipToBounds property is set to true.

protected:
 override System::Windows::Media::Geometry ^ GetLayoutClip(System::Windows::Size layoutSlotSize);
protected override System.Windows.Media.Geometry GetLayoutClip (System.Windows.Size layoutSlotSize);
override this.GetLayoutClip : System.Windows.Size -> System.Windows.Media.Geometry
Protected Overrides Function GetLayoutClip (layoutSlotSize As Size) As Geometry

参数

layoutSlotSize
Size

元素的可用大小。The available size of the element.

返回

Geometry

一个 Geometry,它表示当 ClipToBoundstrue 时要剪裁的区域。A Geometry that represents the area that is clipped if ClipToBounds is true.

适用于

另请参阅