Class DataConnectorViewModel
Namespace: Simplic.Flow.Editor.UI
Assembly: Simplic.Flow.Editor.UI.dll
Syntax
public class DataConnectorViewModel : ConnectorViewModel
Constructors
| Improve this Doc View SourceDataConnectorViewModel(DataPinDefinition)
Declaration
public DataConnectorViewModel(DataPinDefinition pinDefinition)
Parameters
Type | Name | Description |
---|---|---|
DataPinDefinition | pinDefinition |
Properties
| Improve this Doc View SourceAllowedTypes
Gets a comma seperate string of allowed types (Type.Name)
Declaration
public string AllowedTypes { get; }
Property Value
Type | Description |
---|---|
System.String |
DataConnectorType
Gets or sets the pin data type
Declaration
public Type DataConnectorType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
DisplayName
Gets the display name of the pin
Declaration
public override string DisplayName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceFillColor
Gets the fill color of the pin
Declaration
public string FillColor { get; }
Property Value
Type | Description |
---|---|
System.String |
HighlightFillColor
Gets the highlighted fill color
Declaration
public string HighlightFillColor { get; }
Property Value
Type | Description |
---|---|
System.String |
HighlightStrokeColor
Gets the highlighted stroke color
Declaration
public string HighlightStrokeColor { get; }
Property Value
Type | Description |
---|---|
System.String |
Id
Gets the id of the pin
Declaration
public Guid Id { get; }
Property Value
Type | Description |
---|---|
System.Guid |
IsConnected
Gets or sets if the pin is connected
Declaration
public override bool IsConnected { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceIsGeneric
Gets if the pin is a generic data type ( this is used to overwrite the data type)
Declaration
public bool IsGeneric { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets the name of the pin
Declaration
public override string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourcePinDirection
Gets or sets the pin direction
Declaration
public override PinDirectionDefinition PinDirection { get; set; }
Property Value
Type | Description |
---|---|
PinDirectionDefinition |
Overrides
| Improve this Doc View SourceStrokeColor
Gets the stroke color of the pin
Declaration
public string StrokeColor { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCanConnect()
Decides if this pin can be connected to others
Declaration
public override bool CanConnect()
Returns
Type | Description |
---|---|
System.Boolean | True if successfull |
Overrides
| Improve this Doc View SourceCanConnectTo(ConnectorViewModel)
Decides if this pin can be connected to a target pin
Declaration
public override bool CanConnectTo(ConnectorViewModel targetConnectorViewModel)
Parameters
Type | Name | Description |
---|---|---|
ConnectorViewModel | targetConnectorViewModel | Target pin's view model |
Returns
Type | Description |
---|---|
System.Boolean | True if successfull |