Class MhtmlRenderer
Tên không gian: Aspose.Html.Rendering Tổng hợp: Aspose.HTML.dll (25.5.0)
Nó đại diện cho một trình render tài liệu MHTML.
[ComVisible(true)]
public class MhtmlRenderer : Renderer<stream>, IDisposableInheritance
object
←
Renderer
←
Renderer
Implements
Thành viên thừa kế
Renderer
Constructors
MhtmlRenderer()
public MhtmlRenderer()Methods
Render(IDevice, TimeSpan, Params Stream[])
Render nhiều tài liệu MHTML vào Aspose.Html.Rendering.IDevice cụ thể.
public override void Render(IDevice device, TimeSpan timeout, params Stream[] sources)Parameters
device IDevice
thiết bị .
timeout TimeSpan
Một System.TimeSpan đại diện cho số lượng milliseconds để chờ đợi, hoặc một System.TimeSpan đại diện cho -1 milliseconds để chờ đợi vô hạn.
sources Stream
[ ]
Các tài liệu MHTML để trình bày.
Render(IDevice, CancellationToken, Params Stream[])
Định nghĩa một phương pháp để render nhiều tài liệu MHTML vào một Aspose.Html.Rendering.IDevice cụ thể, sử dụng một token hủy để yêu cầu hủy hoạt động.
public override void Render(IDevice device, CancellationToken cancellationToken, params Stream[] sources)Parameters
device IDevice
Thiết bị xuất khẩu.
cancellationToken CancellationToken
A System.Threading.CancellationToken để quan sát trong khi chờ nhiệm vụ để hoàn thành.
sources Stream
[ ]
Các tài liệu MHTML để trình bày.
Render(IDevice, Stream, cấu hình)
Mở tài liệu MHTML vào Aspose.Html.Rendering.IDevice cụ thể.
public void Render(IDevice device, Stream source, Configuration configuration)Parameters
device IDevice
thiết bị .
source Stream
Tài liệu MHTML
configuration Configuration
cấu hình .
Render(IDevice, Stream, Cài đặt, TimeSpan)
Mở tài liệu MHTML vào Aspose.Html.Rendering.IDevice cụ thể.Việc trình bày sẽ được thực hiện một khi không có bất kỳ hoạt động mạng nào cho tài nguyên tải, thời gian hoạt động, nhiệm vụ hoạt hình hoặc thời gian cụ thể được thực hiện.
public void Render(IDevice device, Stream source, Configuration configuration, TimeSpan timeout)Parameters
device IDevice
thiết bị .
source Stream
Tài liệu MHTML
configuration Configuration
cấu hình .
timeout TimeSpan
Một System.TimeSpan đại diện cho số lượng milliseconds để chờ đợi, hoặc một System.TimeSpan đại diện cho -1 milliseconds để chờ đợi vô hạn.
Render(Lời bài hát: Ilist, cấu hình)
Render nhiều tài liệu MHTML vào Aspose.Html.Rendering.IDevice cụ thể.
public void Render(IDevice device, IList<stream> sources, Configuration configuration)Parameters
device IDevice
thiết bị .
Các System.Collections.Generic.IList`1 của các tài liệu MHTML để trình bày.
configuration Configuration
cấu hình .
Render(Lời bài hát: Ilist, Thiết lập, TimeSpan)
Render nhiều tài liệu MHTML vào Aspose.Html.Rendering.IDevice cụ thể.Việc trình bày sẽ được thực hiện một khi không có bất kỳ hoạt động mạng nào cho tài nguyên tải, thời gian hoạt động, nhiệm vụ hoạt hình hoặc thời gian cụ thể được thực hiện.
public void Render(IDevice device, IList<stream> sources, Configuration configuration, TimeSpan timeout)Parameters
device IDevice
thiết bị .
Các System.Collections.Generic.IList`1 của các tài liệu MHTML để trình bày.
configuration Configuration
cấu hình .
timeout TimeSpan
Một System.TimeSpan đại diện cho số lượng milliseconds để chờ đợi, hoặc một System.TimeSpan đại diện cho -1 milliseconds để chờ đợi vô hạn.