ITransformProvider.CanResize 属性

定义

获取一个值,该值指定是否可以调整UI 自动化元素的大小。

public:
 property bool CanResize { bool get(); };
public bool CanResize { get; }
member this.CanResize : bool
Public ReadOnly Property CanResize As Boolean

属性值

Boolean

如果元素可以调整大小,则为 true;否则为 false

示例

以下示例演示了可调整大小的控件的此方法的实现。

/// <summary>
/// Specifies whether resizing is supported.
/// </summary>
bool ITransformProvider.CanResize
{
    get
    {
        return true;
    }
}
''' <summary>
''' Specifies whether resizing is supported.
''' </summary>
Private ReadOnly Property CanResize() As Boolean Implements ITransformProvider.CanResize
    Get
        Return True
    End Get
End Property

适用于

另请参阅