Metoda DragSourceContext.Set —
Dodaje informacje o źródle przeciągnij kontekście źródła ElementGroupPrototype.
Przestrzeń nazw: Microsoft.VisualStudio.Modeling.Diagrams
Zestaw: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (w Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Składnia
'Deklaracja
Public Shared Sub Set ( _
elementGroupPrototype As ElementGroupPrototype, _
initialDragLocation As PointD, _
ghostShapes As GhostShapeCollection _
)
public static void Set(
ElementGroupPrototype elementGroupPrototype,
PointD initialDragLocation,
GhostShapeCollection ghostShapes
)
Parametry
- elementGroupPrototype
Typ: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
ElementGroupPrototype, aby dodać informacje do.
- initialDragLocation
Typ: Microsoft.VisualStudio.Modeling.Diagrams.PointD
Położenie początkowe myszy w współrzędne bezwzględne świata.
- ghostShapes
Typ: Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection
Kolekcja kształtów ghost reprezentuje wszystkie kształty ElementGroupPrototype.
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Używanie bibliotek pochodzących z częściowo zaufanego kodu.