Class AutoScrollChangeEventArgs
Provides information about the OnAutoScrollChange event callback.
Inheritance
System.Object
AutoScrollChangeEventArgs
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class AutoScrollChangeEventArgs : Object
Examples
<SfDiagramComponent OnAutoScrollChange="@OnAutoScrollChange">
<ScrollSettings EnableAutoScroll="true"></ScrollSettings>
</SfDiagramComponent>
@code
{
private void OnAutoScrollChange(AutoScrollChangeEventArgs args)
{
args.Cancel = true;
}
}
Constructors
AutoScrollChangeEventArgs()
Declaration
public AutoScrollChangeEventArgs()
Properties
Cancel
Gets or sets a value indicating whether to cancel the auto scrolling of the diagram.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true, if the auto scroll should be stopped; Otherwise, false. The default value will be false. |
Examples
<SfDiagramComponent OnAutoScrollChange="@OnAutoScrollChange">
<ScrollSettings EnableAutoScroll="true"></ScrollSettings>
</SfDiagramComponent>
@code
{
private void OnAutoScrollChange(AutoScrollChangeEventArgs args)
{
args.Cancel = true;
}
}
Delay
Gets or sets a value to specify the amount of time to wait from applying the auto scroll to the diagram element before beginning to perform the auto scroll.
Declaration
public TimeSpan Delay { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan | Auto scrolling is performed based on the System.TimeSpan value. The default value is 50 millisecond. |
Examples
<SfDiagramComponent OnAutoScrollChange="@OnAutoScrollChange">
<ScrollSettings EnableAutoScroll="true"></ScrollSettings>
</SfDiagramComponent>
@code
{
private void OnAutoScrollChange(AutoScrollChangeEventArgs args)
{
args.Delay = new TimeSpan(0, 0, 0, 1, 0);
}
}
Item
Gets a diagram element that is currently being auto-scrolled.
Declaration
public object Item { get; }
Property Value
Type | Description |
---|---|
System.Object | The diagram element that raised this event. It could be node, connector or group. |
Examples
<SfDiagramComponent OnAutoScrollChange="@OnAutoScrollChange">
<ScrollSettings EnableAutoScroll="true"></ScrollSettings>
</SfDiagramComponent>
@code
{
private void OnAutoScrollChange(AutoScrollChangeEventArgs args)
{
if(args.Item != null){}
}
}