VisualStyleRenderer.GetBackgroundContentRectangle 메서드

정의

현재 비주얼 스타일 요소의 배경에 대한 콘텐츠 영역을 반환합니다.

public:
 System::Drawing::Rectangle GetBackgroundContentRectangle(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle bounds);
public System.Drawing.Rectangle GetBackgroundContentRectangle(System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds);
member this.GetBackgroundContentRectangle : System.Drawing.IDeviceContext * System.Drawing.Rectangle -> System.Drawing.Rectangle
Public Function GetBackgroundContentRectangle (dc As IDeviceContext, bounds As Rectangle) As Rectangle

매개 변수

dc
IDeviceContext

IDeviceContext 작업을 사용합니다.

bounds
Rectangle

현재 비주얼 스타일 요소의 전체 배경 영역을 포함하는 A Rectangle 입니다.

반품

현재 비주얼 스타일 요소의 배경에 대한 콘텐츠 영역을 포함하는 A Rectangle 입니다.

예외

dcnull입니다.

설명

비주얼 스타일은 각 배경 이미지 내에서 콘텐츠 영역을 정의할 수 있습니다. 배경 테두리를 덮어쓰지 않고 텍스트 및 아이콘과 같은 콘텐츠를 배치할 수 있는 영역입니다. 이 메서드는 지정된 배경 영역을 사용하여 현재 비주얼 스타일 요소의 콘텐츠 영역을 계산합니다.

적용 대상