VisualStyleRenderer.GetMargins(IDeviceContext, MarginProperty) 메서드

정의

현재 비주얼 스타일 요소에 대해 지정된 여백 속성 값을 반환합니다.

public:
 System::Windows::Forms::Padding GetMargins(System::Drawing::IDeviceContext ^ dc, System::Windows::Forms::VisualStyles::MarginProperty prop);
public System.Windows.Forms.Padding GetMargins (System.Drawing.IDeviceContext dc, System.Windows.Forms.VisualStyles.MarginProperty prop);
member this.GetMargins : System.Drawing.IDeviceContext * System.Windows.Forms.VisualStyles.MarginProperty -> System.Windows.Forms.Padding
Public Function GetMargins (dc As IDeviceContext, prop As MarginProperty) As Padding

매개 변수

dc
IDeviceContext

이 작업에서 사용할 IDeviceContext입니다.

prop
MarginProperty

현재 비주얼 스타일 요소에 대해 검색할 속성 값을 지정하는 MarginProperty 값 중 하나입니다.

반환

Padding

현재 비주얼 스타일 요소의 prop 매개 변수에 의해 지정된 속성의 값이 들어 있는 Padding입니다.

예외

dc이(가) null인 경우

propMarginProperty 값 중 하나가 아닌 경우

설명

비주얼 스타일은 여백 값 집합을 사용하여 스타일에 정의된 요소의 일부 속성을 설명합니다. 이러한 속성은 값으로 MarginProperty 캡슐화됩니다.

적용 대상