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 값을 포함하는 A입니다.

예외

dcnull입니다.

prop가 값 중 하나가 아닌 경우 MarginProperty

설명

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

적용 대상