Control.Scale 메서드
정의
컨트롤과 자식 컨트롤의 배율을 조정합니다.Scales the control and any child controls.
오버로드
Scale(SizeF) |
컨트롤과 모든 자식 컨트롤의 배율을 지정한 배율 인수로 조정합니다.Scales the control and all child controls by the specified scaling factor. |
Scale(Single) |
사용되지 않습니다.
컨트롤과 자식 컨트롤의 배율을 조정합니다.Scales the control and any child controls. |
Scale(Single, Single) |
사용되지 않습니다.
전체 컨트롤과 자식 컨트롤의 배율을 조정합니다.Scales the entire control and any child controls. |
Scale(SizeF)
컨트롤과 모든 자식 컨트롤의 배율을 지정한 배율 인수로 조정합니다.Scales the control and all child controls by the specified scaling factor.
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)
매개 변수
- factor
- SizeF
가로 및 세로 배율 인수가 포함된 SizeF입니다.A SizeF containing the horizontal and vertical scaling factors.
설명
Scale메서드는 지정 된 크기 조정에 따라 컨트롤의 크기를 조정 factor
합니다.The Scale method scales the control by the specified scaling factor
. 또한 속성이 인 경우 모든 자식 컨트롤을 재귀적 ScaleChildren 으로 확장 true
합니다.It also recursively scales all child controls if the ScaleChildren property is true
. 내부적으로이 메서드는 ScaleControl 를 호출 하 여 각 컨트롤의 크기를 조정 합니다.Internally, this method calls ScaleControl to scale each control.
추가 정보
- ScaleChildren
- ScaleControl(SizeF, BoundsSpecified)
- GetScaledBounds(Rectangle, SizeF, BoundsSpecified)
적용 대상
Scale(Single)
주의
This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202
컨트롤과 자식 컨트롤의 배율을 조정합니다.Scales the control and any child controls.
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);
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")>]
member this.Scale : single -> unit
member this.Scale : single -> unit
Public Sub Scale (ratio As Single)
매개 변수
- ratio
- Single
배율 조정에 사용할 비율입니다.The ratio to use for scaling.
- 특성
적용 대상
Scale(Single, Single)
주의
This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202
전체 컨트롤과 자식 컨트롤의 배율을 조정합니다.Scales the entire control and any child controls.
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);
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")>]
member this.Scale : single * single -> unit
member this.Scale : single * single -> unit
Public Sub Scale (dx As Single, dy As Single)
매개 변수
- dx
- Single
가로 배율 인수입니다.The horizontal scaling factor.
- dy
- Single
세로 배율 인수입니다.The vertical scaling factor.
- 특성