Class Renderer
Namespace: Aspose.Html.Rendering
Assembly: Aspose.HTML.dll (25.2.0)
The base abstract class for all renderers.
[ComVisible(true)]
public abstract class Renderer<tsource> : Renderer, IDisposable
Type Parameters
TSource
The type of the source.
Inheritance
object ← Renderer ← Renderer<tsource>
Implements
Inherited Members
Renderer.Dispose(), Renderer.Dispose(bool), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Renderer()
protected Renderer()
Methods
Render(IDevice, TSource)
Defines method for rendering TSource into specified Aspose.Html.Rendering.IDevice.
public void Render(IDevice device, TSource source)
Parameters
device
IDevice
The output device.
source
TSource
The source to render.
Render(IDevice, TSource, TimeSpan)
Defines method for rendering TSource into specified Aspose.Html.Rendering.IDevice.
public void Render(IDevice device, TSource source, TimeSpan timeout)
Parameters
device
IDevice
The output device.
source
TSource
The source to render.
timeout
TimeSpan
A System.TimeSpan that represents the number of milliseconds to wait, or a System.TimeSpan that represents -1 millisecond to wait indefinitely.
Render(IDevice, TSource, int)
Defines method for rendering TSource into specified Aspose.Html.Rendering.IDevice.
public void Render(IDevice device, TSource source, int timeout)
Parameters
device
IDevice
The output device.
source
TSource
The source to render.
timeout
int
A number of milliseconds that represents the number of milliseconds to wait, or -1 millisecond to wait indefinitely.
Render(IDevice, params TSource[])
Defines method for rendering multiple TSources into specific Aspose.Html.Rendering.IDevice.
public void Render(IDevice device, params TSource[] sources)
Parameters
device
IDevice
The output device.
sources
TSource[]
The sources to render.
Render(IDevice, int, params TSource[])
Defines method for rendering multiple TSources into specific Aspose.Html.Rendering.IDevice.
public void Render(IDevice device, int timeout, params TSource[] sources)
Parameters
device
IDevice
The output device.
timeout
int
A number of milliseconds that represents the number of milliseconds to wait, or -1 millisecond to wait indefinitely.
sources
TSource[]
The sources to render.
Render(IDevice, TimeSpan, params TSource[])
Defines method for rendering multiple TSources into specific Aspose.Html.Rendering.IDevice.
public abstract void Render(IDevice device, TimeSpan timeout, params TSource[] sources)
Parameters
device
IDevice
The output device.
timeout
TimeSpan
A System.TimeSpan that represents the number of milliseconds to wait, or a System.TimeSpan that represents -1 millisecond to wait indefinitely.
sources
TSource[]
The sources to render.
Render(IDevice, CancellationToken, params TSource[])
Defines a method for rendering multiple TSources into a specific Aspose.Html.Rendering.IDevice, using a cancellation token to request cancellation of the operation.
public abstract void Render(IDevice device, CancellationToken cancellationToken, params TSource[] sources)
Parameters
device
IDevice
The output device.
cancellationToken
CancellationToken
A System.Threading.CancellationToken to observe while waiting for the task to complete.
sources
TSource[]
The sources to render.
See Also
IDisposable </tsource>