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: IDataObjectThe IDataObject to add the custom data formats to.
elements
Type: ICollection<ModelElement>The collection of ModelElements.
closureType
Type: Microsoft.VisualStudio.Modeling.ClosureTypeThe type of closure to use to filter the elements.
sourcePosition
Type: PointFThe positions of the ModelElements in the source
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.