編輯

共用方式為


InkCanvas.MeasureOverride(Size) Method

Definition

Measures the size in layout required for child elements and determines a size for the InkCanvas object.

protected:
 override System::Windows::Size MeasureOverride(System::Windows::Size availableSize);
protected override System.Windows.Size MeasureOverride (System.Windows.Size availableSize);
override this.MeasureOverride : System.Windows.Size -> System.Windows.Size
Protected Overrides Function MeasureOverride (availableSize As Size) As Size

Parameters

availableSize
Size

The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

Returns

The size that this element determines it needs during layout, based on its calculations of child element sizes.

Applies to

See also