Control.Scale Metod

Definition

Skalar kontrollen och eventuella underordnade kontroller.

Överlagringar

Name Description
Scale(SizeF)

Skalar kontrollen och alla underordnade kontroller efter den angivna skalningsfaktorn.

Scale(Single)
Föråldrad.
Föråldrad.

Skalar kontrollen och eventuella underordnade kontroller.

Scale(Single, Single)
Föråldrad.
Föråldrad.

Skalar hela kontrollen och eventuella underordnade kontroller.

Scale(SizeF)

Källa:
Control.cs
Källa:
Control.cs
Källa:
Control.cs
Källa:
Control.cs
Källa:
Control.cs

Skalar kontrollen och alla underordnade kontroller efter den angivna skalningsfaktorn.

public:
 void Scale(System::Drawing::SizeF factor);
public void Scale(System.Drawing.SizeF factor);
member this.Scale : System.Drawing.SizeF -> unit
Public Sub Scale (factor As SizeF)

Parametrar

factor
SizeF

En SizeF som innehåller de vågräta och lodräta skalningsfaktorerna.

Kommentarer

Metoden Scale skalar kontrollen med den angivna skalningen factor. Den skalar också rekursivt alla underordnade kontroller om egenskapen ScaleChildren är true. Internt anropar ScaleControl den här metoden för att skala varje kontroll.

Se även

Gäller för

Scale(Single)

Källa:
Control.cs
Källa:
Control.cs
Källa:
Control.cs
Källa:
Control.cs
Källa:
Control.cs

Varning

This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202

Varning

This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202

Skalar kontrollen och eventuella underordnade kontroller.

public:
 void Scale(float ratio);
public void Scale(float ratio);
[System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale(float ratio);
[System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale(float ratio);
member this.Scale : single -> unit
[<System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Scale : single -> unit
[<System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Scale : single -> unit
Public Sub Scale (ratio As Single)

Parametrar

ratio
Single

Förhållandet som ska användas för skalning.

Attribut

Gäller för

Scale(Single, Single)

Källa:
Control.cs
Källa:
Control.cs
Källa:
Control.cs
Källa:
Control.cs
Källa:
Control.cs

Varning

This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202

Varning

This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202

Skalar hela kontrollen och eventuella underordnade kontroller.

public:
 void Scale(float dx, float dy);
public void Scale(float dx, float dy);
[System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale(float dx, float dy);
[System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale(float dx, float dy);
member this.Scale : single * single -> unit
[<System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Scale : single * single -> unit
[<System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Scale : single * single -> unit
Public Sub Scale (dx As Single, dy As Single)

Parametrar

dx
Single

Den vågräta skalningsfaktorn.

dy
Single

Den lodräta skalningsfaktorn.

Attribut

Gäller för