Stroke.ScaleToRectangle 方法

根据指定的 Rectangle 结构缩放 Stroke 对象。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink(在 Microsoft.Ink.dll 中)

语法

声明
Public Sub ScaleToRectangle ( _
    scaleRectangle As Rectangle _
)
用法
Dim instance As Stroke
Dim scaleRectangle As Rectangle

instance.ScaleToRectangle(scaleRectangle)
public void ScaleToRectangle(
    Rectangle scaleRectangle
)
public:
void ScaleToRectangle(
    Rectangle scaleRectangle
)
public void ScaleToRectangle(
    Rectangle scaleRectangle
)
public function ScaleToRectangle(
    scaleRectangle : Rectangle
)

参数

备注

Stroke 对象进行缩放和转换,使 Stroke 对象的边界框与指定矩形一致。

示例

此 C# 示例对 Stroke 对象 theStroke 调用 ScaleToRectangle 方法,并传入 Rectangle 结构 theRectangle 作为参数。该方法对 theStroke 进行缩放和转换,以便其边界框与 theRectangle 一致。

theStroke.ScaleToRectangle(theRectangle);

此 Microsoft Visual Basic .NET 示例对 Stroke 对象 theStroke 调用 ScaleToRectangle 方法,并传入 Rectangle 结构 theRectangle 作为参数。该方法对 theStroke 进行缩放和转换,以便其边界框与 theRectangle 一致。

theStroke.ScaleToRectangle(theRectangle)

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

Stroke 类

Stroke 成员

Microsoft.Ink 命名空间

Stroke.GetBoundingBox

Stroke.Scale

Stroke.Transform

Strokes.ScaleToRectangle