Stroke.ScaleToRectangle - метод
Обновлен: Ноябрь 2007
Scales the Stroke object to fit in the specified Rectangle structure.
Пространство имен: 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
)
Параметры
- scaleRectangle
Тип: System.Drawing.Rectangle
The Rectangle structure, in ink space coordinates, to which the Stroke object is scaled.
Заметки
The Stroke object is scaled and translated to match the Stroke object's bounding box to the rectangle.
Примеры
This C# example calls the ScaleToRectangle method on the Stroke object, theStroke, passing in a Rectangle structure, theRectangle, as the parameter. The method scales and translates theStroke so its bounding box matches theRectangle.
theStroke.ScaleToRectangle(theRectangle);
This Microsoft Visual Basic .NET example calls the ScaleToRectangle method on the Stroke object, theStroke, passing in a Rectangle structure, theRectangle, as the parameter. The method scales and translates theStroke so its bounding box matches theRectangle.
theStroke.ScaleToRectangle(theRectangle)
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0