VisualStyleRenderer.GetMargins(IDeviceContext, MarginProperty) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the value of the specified margins property for the current visual style element.
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
Parameters
The IDeviceContext this operation will use.
- prop
- MarginProperty
One of the MarginProperty values that specifies which property value to retrieve for the current visual style element.
Returns
A Padding that contains the value of the property specified by the prop
parameter for the current visual style element.
Exceptions
dc
is null
.
prop
is not one of the MarginProperty values.
Remarks
Visual styles use a set of margin values to describe some properties of the elements defined by a style. These properties are encapsulated by the MarginProperty values.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示