Control.Scale Metoda

Definicja

Skaluje kontrolkę i wszystkie kontrolki podrzędne.

Przeciążenia

Scale(SizeF)

Skaluje kontrolkę i wszystkie kontrolki podrzędne według określonego współczynnika skalowania.

Scale(Single)
Przestarzałe.
Przestarzałe.

Skaluje kontrolkę i wszystkie kontrolki podrzędne.

Scale(Single, Single)
Przestarzałe.
Przestarzałe.

Skaluje całą kontrolkę i wszystkie kontrolki podrzędne.

Scale(SizeF)

Skaluje kontrolkę i wszystkie kontrolki podrzędne według określonego współczynnika skalowania.

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)

Parametry

factor
SizeF

Element SizeF zawierający czynniki skalowania poziomego i pionowego.

Uwagi

Metoda Scale skaluje kontrolkę przez określone skalowanie factor. Rekursywnie skaluje również wszystkie kontrolki podrzędne, jeśli ScaleChildren właściwość ma wartość true. Ta metoda jest wywoływana ScaleControl wewnętrznie w celu skalowania każdej kontrolki.

Zobacz też

Dotyczy

Scale(Single)

Przestroga

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

Przestroga

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

Skaluje kontrolkę i wszystkie kontrolki podrzędne.

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)

Parametry

ratio
Single

Stosunek do użycia na potrzeby skalowania.

Atrybuty

Dotyczy

Scale(Single, Single)

Przestroga

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

Przestroga

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

Skaluje całą kontrolkę i wszystkie kontrolki podrzędne.

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)

Parametry

dx
Single

Współczynnik skalowania w poziomie.

dy
Single

Współczynnik skalowania w pionie.

Atrybuty

Dotyczy