Class FixedUserHandle
Represents the behavior of fixeduserhandle.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class FixedUserHandle : DiagramObject, IDiagramObject, ICloneable
Constructors
FixedUserHandle()
Initializes a new instance of the FixedUserHandle.
Declaration
public FixedUserHandle()
FixedUserHandle(FixedUserHandle)
Creates a new instance of the FixedUserHandle from the given FixedUserHandle.
Declaration
public FixedUserHandle(FixedUserHandle src)
Parameters
Type | Name | Description |
---|---|---|
FixedUserHandle | src | FixedUserHandle. |
Properties
CornerRadius
Gets or sets the corner radius of the fixed user handle container.
Declaration
public double CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
ID = "user1",
CornerRadius = 10,
}
},
};
Fill
Gets or sets the fill color of the fixed user handle.
Declaration
public string Fill { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is transparent |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
ID = "user1",
Fill="green",
}
},
};
Height
Gets or sets the height of the fixed user handle.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 10px |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
ID = "user1",
Height = 25,
Width = 25,
}
},
};
IconStroke
Gets or sets the stroke color of the fixed user handle.
Declaration
public string IconStroke { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is black |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
ID = "user1",
IconStroke="red",
}
},
};
IconStrokeThickness
Gets or sets the stroke width of the fixed user handle.
Declaration
public double IconStrokeThickness { get; set; }
Property Value
Type |
---|
System.Double |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
ID = "user1",
IconStrokeThickness = 2,
}
},
};
ID
Gets or sets the unique id of the diagram object.
Declaration
public string ID { get; set; }
Property Value
Type |
---|
System.String |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
ID = "user1",
}
},
};
Padding
Gets or sets the space between the fixed user handle and the container.
Declaration
public DiagramThickness Padding { get; set; }
Property Value
Type | Description |
---|---|
DiagramThickness | The default value is 0 |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
ID = "user1",
Padding= new DiagramThickness() {Bottom=4, Left=4, Right=4, Top=4 },
}
},
};
PathData
Gets or sets the shape information of the fixed user handle.
Declaration
public string PathData { get; set; }
Property Value
Type |
---|
System.String |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
PathData = "M60.3,18H27.5c-3,0-5.5,2.4-5.5,5.5v38.2h5.5V23.5h32.7V18z M68.5,28.9h-30c-3,0-5.5,2.4-5.5,5.5v38.2c0,3,2.4,5.5,5.5,5.5h30c3,0,5.5-2.4,5.5-5.5V34.4C73.9,31.4,71.5,28.9,68.5,28.9z M68.5,72.5h-30V34.4h30V72.5z"
}
},
};
Stroke
Gets or sets the stroke color of the fixed user handle container.
Declaration
public string Stroke { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is transparent |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
Stroke ="orange",
}
},
};
StrokeThickness
Gets or sets the stroke width of the fixed user handle container.
Declaration
public double StrokeThickness { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1px |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
ID = "user1",
StrokeThickness = 10,
}
},
};
Tooltip
Gets or sets the message that is displayed when the mouse hovers over a fixed user handle.
Declaration
public DiagramTooltip Tooltip { get; set; }
Property Value
Type | Description |
---|---|
DiagramTooltip | The default value is |
Examples
The following example demonstrates creating a fixed user handle with a tooltip in Razor syntax:
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
ID = "user1",
Tooltip = new DiagramTooltip() { Content="Clone" , OpenOn="Auto"}
}
},
};
Visibility
Gets or sets the visibility of the fixed user handle. By default, it is True.
Declaration
public bool Visibility { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true,The visibility of fixed user handle is in visibile state;Otherwiese, false |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
ID = "user1",
Visibility = true,
}
},
};
Width
Gets or sets the width of the fixed user handle.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 10px |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
ID = "user1",
Height = 25,
Width = 25,
}
},
};
Methods
Clone()
Creates a new object that is a copy of the current FixedUserHandle.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | It returns FixedUserHandle |