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

表示如果 Geometrytrue,所要裁剪之區域的 ClipToBoundsA Geometry that represents the area that is clipped if ClipToBounds is true.

適用於

另請參閱