Control.Scale Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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
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
- ScaleChildren
- ScaleControl(SizeF, BoundsSpecified)
- GetScaledBounds(Rectangle, SizeF, BoundsSpecified)
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