ElementOperations.AddCustomFormat Method

Adds one or more custom data formats to the specified IDataObject using the specified collection of ModelElements.

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

Syntax

'Declaration
Protected Overridable Sub AddCustomFormat ( _
    data As IDataObject, _
    elements As ICollection(Of ModelElement), _
    closureType As ClosureType, _
    sourcePosition As PointF _
)
protected virtual void AddCustomFormat(
    IDataObject data,
    ICollection<ModelElement> elements,
    ClosureType closureType,
    PointF sourcePosition
)
protected:
virtual void AddCustomFormat(
    IDataObject^ data, 
    ICollection<ModelElement^>^ elements, 
    ClosureType closureType, 
    PointF sourcePosition
)
abstract AddCustomFormat : 
        data:IDataObject * 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType * 
        sourcePosition:PointF -> unit  
override AddCustomFormat : 
        data:IDataObject * 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType * 
        sourcePosition:PointF -> unit
protected function AddCustomFormat(
    data : IDataObject, 
    elements : ICollection<ModelElement>, 
    closureType : ClosureType, 
    sourcePosition : PointF
)

Parameters

  • data
    Type: IDataObject

    The IDataObject to add the custom data formats to.

  • elements
    Type: ICollection<ModelElement>

    The collection of ModelElements.

  • sourcePosition
    Type: PointF

    The positions of the ModelElements in the source

.NET Framework Security

See Also

Reference

ElementOperations Class

Microsoft.VisualStudio.Modeling Namespace