Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) 메서드
정의
컨트롤의 배율이 조정되는 범위를 검색합니다.Retrieves the bounds within which the control is scaled.
protected:
virtual System::Drawing::Rectangle GetScaledBounds(System::Drawing::Rectangle bounds, System::Drawing::SizeF factor, System::Windows::Forms::BoundsSpecified specified);
protected virtual System.Drawing.Rectangle GetScaledBounds (System.Drawing.Rectangle bounds, System.Drawing.SizeF factor, System.Windows.Forms.BoundsSpecified specified);
abstract member GetScaledBounds : System.Drawing.Rectangle * System.Drawing.SizeF * System.Windows.Forms.BoundsSpecified -> System.Drawing.Rectangle
override this.GetScaledBounds : System.Drawing.Rectangle * System.Drawing.SizeF * System.Windows.Forms.BoundsSpecified -> System.Drawing.Rectangle
Protected Overridable Function GetScaledBounds (bounds As Rectangle, factor As SizeF, specified As BoundsSpecified) As Rectangle
매개 변수
- bounds
- Rectangle
디스플레이 범위를 검색할 영역을 지정하는 Rectangle입니다.A Rectangle that specifies the area for which to retrieve the display bounds.
- factor
- SizeF
컨트롤 범위의 높이 및 너비입니다.The height and width of the control's bounds.
- specified
- BoundsSpecified
크기 및 위치를 정의하는 데 사용할 컨트롤 범위를 지정하는 BoundsSpecified 값 중 하나입니다.One of the values of BoundsSpecified that specifies the bounds of the control to use when defining its size and position.
반환
컨트롤의 크기가 조정되는 범위를 나타내는 Rectangle입니다.A Rectangle representing the bounds within which the control is scaled.
설명
이 메서드는 컨트롤의 크기가 조정 되는 범위를 검색 하기 위해 ScaleControl에서 호출 하는 도우미 메서드입니다.This is a helper method that is called by ScaleControl to retrieve the bounds within which the control is scaled. 이 메서드를 재정의 하 여 ScaleControl 크기 조정 논리를 다시 사용할 수 있지만 사용자 고유의 범위를 제공 해야 합니다.You can override this method to reuse the ScaleControl scaling logic, but you must supply your own bounds. 기본 구현에서는 specified
범위를 고려 하는 배율이 지정 된 범위를 반환 합니다. 즉, 컨트롤이 최상위 수준 인지 여부, 컨트롤이 고정 너비 또는 자동 크기 인지 여부, 컨트롤에 포함 될 수 있는 장식 등을 고려 합니다.The default implementation returns scaled bounds that take into account the specified
bounds, whether the control is top level, whether the control is fixed width or auto size, and any adornments the control might have.