Upravit

Sdílet prostřednictvím


UIElement.GetLayoutClip(Size) Method

Definition

Returns an alternative clipping geometry that represents the region that would be clipped if ClipToBounds were set to true.

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

Parameters

layoutSlotSize
Size

The available size provided by the element.

Returns

The potential clipping geometry.

Remarks

The default implementation will return a legitimate value, but does not use the layoutSlotSize parameter in its calculations. Instead it uses the value of RenderSize.

This method is substantially overridden by the immediately derived FrameworkElement class, and the FrameworkElement override produces a more sophisticated behavior for general WPF framework-level elements. For details, see FrameworkElement.GetLayoutClip.

Applies to

See also