Compartilhar via


IXRColumnDefinition::GetActualWidth (Compact 2013)

3/28/2014

This method retrieves a value that represents the actual rendered width of this column definition.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetActualWidth(
    float *pActualWidth
) = 0;

Parameters

  • pActualWidth
    [out] Pointer to a float value that represents the actual rendered width of this column definition.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The value of pActualWidth is a calculated value that is based on other width inputs and the layout system.

When you add or remove rows or columns to a grid object, the ActualWidth value for all IXRColumnDefinition objects, and also the ActualHeight value of all IXRRowDefinition objects, becomes zero until the IXRGrid inherited method IXRUIElement::Measure is called to update the desired size of the object.

.NET Framework Equivalent

System.Windows.Controls.ColumnDefinition.ActualWidth

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRColumnDefinition