This documentation is archived and is not being maintained.

Vector.Multiply Method (Vector, Double)

Multiplies the specified vector by the specified scalar and returns the resulting Vector.

Namespace: System.Windows
Assembly: WindowsBase (in windowsbase.dll)

public static Vector Multiply (
	Vector vector,
	double scalar
public static Vector Multiply (
	Vector vector, 
	double scalar
public static function Multiply (
	vector : Vector, 
	scalar : double
) : Vector
You cannot use methods in XAML.



The vector to multiply.


The scalar to multiply.

Return Value

The result of multiplying vector and scalar.

The following example shows how to use this method to multiply a Vector by a scalar.

private Vector multiplyVectorByScalarExample1()
    Vector vector1 = new Vector(20, 30);
    Double scalar1 = 75;
    Vector vectorResult = new Vector();

    // Multiply the vector by the scalar.
    // vectorResult is equal to (1500,2250)
    vectorResult = Vector.Multiply(vector1, scalar1);

    return vectorResult;


Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0