Delen via


Compartment.OnPaintSelection Method

Forwards the event to the compartment shape when the user changes the style of the compartment.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Overrides Sub OnPaintSelection ( _
    e As DiagramPaintEventArgs _
)
public override void OnPaintSelection(
    DiagramPaintEventArgs e
)
public:
virtual void OnPaintSelection(
    DiagramPaintEventArgs^ e
) override
abstract OnPaintSelection : 
        e:DiagramPaintEventArgs -> unit  
override OnPaintSelection : 
        e:DiagramPaintEventArgs -> unit
public override function OnPaintSelection(
    e : DiagramPaintEventArgs
)

Parameters

Remarks

To use this method, the ForwardEventsToParent property must be true.

.NET Framework Security

See Also

Reference

Compartment Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace