Class TimingValueBuilder
Namespace: Aspose.Svg.Builder
Assembly: Aspose.SVG.dll (25.8.0)
Builds a timing value used for specifying animation or transition timings.
[ComVisible(true)]
public class TimingValueBuilderInheritance
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
TimingValueBuilder()
public TimingValueBuilder()Methods
AddAccessKey(char, TimeSpan?)
Adds an access key-based timing value.
public TimingValueBuilder AddAccessKey(char key, TimeSpan? offset = null)Parameters
key char
The access key to trigger the timing.
offset TimeSpan
?
Optional offset from the access key activation.
Returns
The current TimingValueBuilder instance for chaining.
AddEvent(string, string, TimeSpan?)
Adds an event-based timing value.
public TimingValueBuilder AddEvent(string id, string eventName, TimeSpan? offset = null)Parameters
id string
The ID of the element where the event will be listened to.
eventName string
The name of the event to listen for.
offset TimeSpan
?
Optional offset from the event timing.
Returns
The current TimingValueBuilder instance for chaining.
AddIndefinite()
Adds an indefinite timing value.
public TimingValueBuilder AddIndefinite()Returns
The current TimingValueBuilder instance for chaining.
AddOffset(TimeSpan)
Adds a time offset to the timing value.
public TimingValueBuilder AddOffset(TimeSpan offset)Parameters
offset TimeSpan
The time offset to add.
Returns
The current TimingValueBuilder instance for chaining.
AddRepeat(string, int, TimeSpan?)
Adds a repeat-based timing value.
public TimingValueBuilder AddRepeat(string id, int repeatCount, TimeSpan? offset = null)Parameters
id string
The ID of the element to synchronize with.
repeatCount int
The number of repeats to wait for.
offset TimeSpan
?
Optional offset from the repeat timing.
Returns
The current TimingValueBuilder instance for chaining.
AddSyncbase(string, string, TimeSpan?)
Adds a syncbase timing value, which synchronizes with another element’s timing.
public TimingValueBuilder AddSyncbase(string id, string timing, TimeSpan? offset = null)Parameters
id string
The ID of the element to synchronize with.
timing string
The timing attribute to synchronize to (e.g., “start”, “end”).
offset TimeSpan
?
Optional offset from the syncbase timing.
Returns
The current TimingValueBuilder instance for chaining.
AddWallclock(DateTime)
Adds a wallclock timing value.
public TimingValueBuilder AddWallclock(DateTime wallclockTime)Parameters
wallclockTime DateTime
The specific date and time for the timing.
Returns
The current TimingValueBuilder instance for chaining.
Build()
Builds the final timing value string from the added components.
public string Build()Returns
The constructed timing value string.
FormatTimeSpan(TimeSpan)
Formats a TimeSpan into a string representation suitable for timing values.
public static string FormatTimeSpan(TimeSpan timeSpan)Parameters
timeSpan TimeSpan
The TimeSpan to format.
Returns
A string representation of the TimeSpan.