### Get Page Setup Configuration Source: https://reference.aspose.com/html/net/aspose.html.rendering.image/imagerenderingoptions Gets a page setup object that is used for configuration of the output page setup. ```C# PageSetup pageSetup = imageRenderingOptions.PageSetup; ``` -------------------------------- ### Initialize DocDevice with Options and File Path Source: https://reference.aspose.com/html/net/aspose.html.rendering.doc/docdevice/docdevice Demonstrates initializing the DocDevice with DocRenderingOptions and a file path. This provides control over rendering settings while specifying the output file. ```.NET // Example of initializing DocDevice with options and file path DocRenderingOptions options = new DocRenderingOptions(); // Configure options as needed string filePath = "output.doc"; // Specify the desired output file path DocDevice device = new DocDevice(options, filePath); ``` -------------------------------- ### Initialize DocDevice with Options and Stream Provider Source: https://reference.aspose.com/html/net/aspose.html.rendering.doc/docdevice/docdevice Shows how to initialize the DocDevice with specific DocRenderingOptions and an ICreateStreamProvider. This allows for fine-grained control over the rendering process and output stream management. ```.NET // Example of initializing DocDevice with options and ICreateStreamProvider DocRenderingOptions options = new DocRenderingOptions(); // Configure options as needed ICreateStreamProvider streamProvider = new CustomStreamProvider(); // Replace with your implementation DocDevice device = new DocDevice(options, streamProvider); ``` -------------------------------- ### Get SVGPathSegMovetoRel.X Value Source: https://reference.aspose.com/html/net/aspose.html.dom.svg.paths/svgpathsegmovetorel/x This code example demonstrates how to retrieve the X coordinate value from an SVGPathSegMovetoRel object. This property is crucial for understanding the starting point of a relative moveto path segment in SVG. ```csharp using Aspose.Html.Dom.Svg.Paths; // Assuming 'pathSeg' is an instance of SVGPathSegMovetoRel // For example, obtained from an SVG path data string: // SVGPathElement pathElement = ...; // SVGPathSegList segList = pathElement.PathSegList; // SVGPathSegMovetoRel pathSeg = segList.GetItem(0) as SVGPathSegMovetoRel; if (pathSeg != null) { double xCoordinate = pathSeg.X; Console.WriteLine($"The X coordinate is: {xCoordinate}"); } ``` -------------------------------- ### Get and Set HTMLOListElement Start Property Source: https://reference.aspose.com/html/net/aspose.html/htmlolistelement/start This C# code snippet demonstrates how to get and set the 'Start' property of the HTMLOListElement class. This property controls the starting sequence number for an ordered list element. ```csharp public int Start { get; set; } ``` -------------------------------- ### Initialize DocDevice with Options and Stream Source: https://reference.aspose.com/html/net/aspose.html.rendering.doc/docdevice/docdevice Demonstrates initializing the DocDevice with DocRenderingOptions and a Stream object. This allows for customized rendering settings applied to a provided stream. ```.NET // Example of initializing DocDevice with options and Stream DocRenderingOptions options = new DocRenderingOptions(); // Configure options as needed using (Stream outputStream = File.Create("output.doc")) { DocDevice device = new DocDevice(options, outputStream); // Use the device for rendering... } ``` -------------------------------- ### Create Configuration Instance in C# Source: https://reference.aspose.com/html/net/aspose.html/configuration Shows how to create and configure a Configuration object using static methods. This allows for setting up environment settings for Aspose.Html applications. ```C# public static Configuration Create() public static Configuration Create(Action _) ``` -------------------------------- ### Get TextLine Start Position - Aspose.HTML Source: https://reference.aspose.com/html/net/aspose.html.toolkit.markdown.syntax.text/textline/start The TextLine.Start property retrieves the starting position of a text line within a document. This is useful for text manipulation and analysis tasks. ```csharp public int Start { get; } ``` -------------------------------- ### Initialize XpsDevice with Options and File Path Source: https://reference.aspose.com/html/net/aspose.html.rendering.xps/xpsdevice/xpsdevice Initializes a new instance of the XpsDevice class using XPS rendering options and a specified output file path. This provides control over rendering and output destination. ```C# public XpsDevice(XpsRenderingOptions options, string file) ``` -------------------------------- ### Get Byte Offset of TypedArray Source: https://reference.aspose.com/html/net/aspose.html/typedarray/byteoffset Retrieves the byte offset from the start of the referenced ArrayBuffer for a TypedArray object. This property indicates the starting position in bytes within the underlying ArrayBuffer. ```C# public int ByteOffset { get; } ``` -------------------------------- ### Initialize XpsDevice with Options and Stream Provider Source: https://reference.aspose.com/html/net/aspose.html.rendering.xps/xpsdevice/xpsdevice Initializes a new instance of the XpsDevice class using specified XPS rendering options and a stream provider for output. The stream provider dictates how output streams are created. ```C# public XpsDevice(XpsRenderingOptions options, ICreateStreamProvider streamProvider) ``` -------------------------------- ### SVGAnimatedNumberList.ToString Method Example Source: https://reference.aspose.com/html/net/aspose.html.dom.svg.datatypes/svganimatednumberlist/tostring This example demonstrates how to use the ToString method of the SVGAnimatedNumberList class to get a string representation of the list. This is useful for debugging or displaying the list's contents. ```csharp using Aspose.Html.Dom.Svg.DataTypes; // Assuming 'svgAnimatedNumberList' is an instance of SVGAnimatedNumberList // For example: // SVGAnimatedNumberList svgAnimatedNumberList = ...; // Get the string representation of the list string listAsString = svgAnimatedNumberList.ToString(); // You can then use or display this string Console.WriteLine(listAsString); ``` -------------------------------- ### Initialize DocDevice with Rendering Options and Output Stream Source: https://reference.aspose.com/html/net/aspose.html.rendering.doc/docdevice/docdevice Initializes a new instance of the DocDevice class with rendering options and an output Stream. This enables customized rendering to a specified stream. ```C# public DocDevice(DocRenderingOptions options, Stream stream) ``` -------------------------------- ### Get SVGRect.X Property Value Source: https://reference.aspose.com/html/net/aspose.html.dom.svg.datatypes/svgrect/x This example demonstrates how to get the X coordinate of an SVGRect object using the Aspose.HTML for .NET library. It involves creating an SVGRect and accessing its X property. ```.NET using Aspose.Html.Dom.Svg.DataTypes; // Assume svgRect is an instance of SVGRect // For example: // SVGRect svgRect = new SVGRect(10, 20, 30, 40); // Get the X coordinate float xCoordinate = svgRect.X; ``` -------------------------------- ### License Class Initialization and Setting License in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html/license Demonstrates how to initialize the License class and apply a license file using its SetLicense method. The first example shows setting the license with a file path in C#, while the second shows the equivalent in Java. ```C# License license = new License(); license.SetLicense("MyLicense.lic"); ``` ```Java License license = new License(); license.setLicense("MyLicense.lic"); ``` -------------------------------- ### Get TextSpan Start Index - C# Source: https://reference.aspose.com/html/net/aspose.html.toolkit.markdown.syntax.text/textspan/start Retrieves the starting index of a text span using the TextSpan.Start property. This property is part of the Aspose.HTML for .NET library and is used within the Markdown syntax toolkit. ```csharp public int Start { get; } ``` -------------------------------- ### Get and Set LineDashOffset - Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html.dom.canvas/icanvasdrawingstyles/linedashoffset This code snippet demonstrates how to get and set the LineDashOffset property for an ICanvasDrawingStyles object. This property specifies where to start a dash array on a line, allowing customization of dashed line rendering. ```csharp public double LineDashOffset { get; set; } ``` -------------------------------- ### Getting Option Index in C# Source: https://reference.aspose.com/html/net/aspose.html/htmloptionelement For OPTION elements within a SELECT, this returns the index of the option starting from 0. ```C# public Index { get; } ``` -------------------------------- ### Configure Page Setup Source: https://reference.aspose.com/html/net/aspose.html.rendering.doc/docrenderingoptions Provides access to page setup configurations for output pages. ```C# /// /// Gets a page setup object is used for configuration output page-set. /// public PageSetup PageSetup { get; } ``` -------------------------------- ### Getting Node Type Name in C# Source: https://reference.aspose.com/html/net/aspose.html.dom.svg.filters/svgfetileelement Returns the name of the node based on its type. For example, 'ELEMENT_NODE' for an element. ```C# public override string NodeName { get; } ``` -------------------------------- ### Initialize DocDevice with Rendering Options and ICreateStreamProvider Source: https://reference.aspose.com/html/net/aspose.html.rendering.doc/docdevice/docdevice Initializes a new instance of the DocDevice class with specified rendering options and an ICreateStreamProvider. This provides control over rendering behavior and custom stream management. ```C# public DocDevice(DocRenderingOptions options, ICreateStreamProvider streamProvider) ``` -------------------------------- ### Initialize DocDevice with Rendering Options and Output File Name Source: https://reference.aspose.com/html/net/aspose.html.rendering.doc/docdevice/docdevice Initializes a new instance of the DocDevice class using rendering options and a specified output file name. This allows for customized rendering to a file. ```C# public DocDevice(DocRenderingOptions options, string file) ``` -------------------------------- ### Getting and Setting Node Value in C# Source: https://reference.aspose.com/html/net/aspose.html.dom.svg/svgdescelement Retrieves or sets the value of the current node. This can be text content for text nodes, for example. ```C# public virtual NodeValue { get; set; } ``` -------------------------------- ### Initialize XpsDevice with Options and Stream Source: https://reference.aspose.com/html/net/aspose.html.rendering.xps/xpsdevice/xpsdevice Initializes a new instance of the XpsDevice class using XPS rendering options and a provided Stream object for output. This constructor offers fine-grained control over both rendering and the output stream. ```C# public XpsDevice(XpsRenderingOptions options, Stream stream) ``` -------------------------------- ### Getting and Setting Node Value (.NET) Source: https://reference.aspose.com/html/net/aspose.html.dom.svg.filters/svgfecolormatrixelement Retrieves or sets the value of the current node. This can be text content for text nodes, for example. ```C# public virtual string NodeValue { get; set; } ``` -------------------------------- ### Initialize DocDevice with File Path Source: https://reference.aspose.com/html/net/aspose.html.rendering.doc/docdevice/docdevice Illustrates initializing the DocDevice using a string representing the output file path. The library will handle the creation and management of the file stream internally. ```.NET // Example of initializing DocDevice with a file path string filePath = "output.doc"; // Specify the desired output file path DocDevice device = new DocDevice(filePath); ``` -------------------------------- ### Handling OnPlaying Event in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html/htmlelement This snippet shows how to get or set the event handler for the OnPlaying event in Aspose.HTML for .NET. This event fires when the media playback has started. ```C# /// /// Gets or sets event handler for OnPlaying event. /// public event System.EventHandler OnPlaying; ``` -------------------------------- ### Initialize Configuration Class in C# Source: https://reference.aspose.com/html/net/aspose.html/configuration Demonstrates the initialization of the Configuration class in C#. This class is used to set up environment settings for applications using Aspose.Html. ```C# public class Configuration : IDisposable, IServiceProvider ``` -------------------------------- ### Get StartOffset Attribute of TextPath Source: https://reference.aspose.com/html/net/aspose.html.dom.svg/svgtextpathelement Corresponds to the 'startOffset' attribute on a given 'textPath' element. This property is used to define the starting position of text along a path. ```C# /// /// Corresponds to attribute ‘startOffset’ on the given ‘textPath’ element. /// StartOffset { get; } ``` -------------------------------- ### Initialize Aspose.HTML License (C#) Source: https://reference.aspose.com/html/net/aspose.html/license/license Initializes a new instance of the License class in C#. This is the first step before applying a license file to enable the full functionality of Aspose.HTML. ```C# License license = new License(); ``` -------------------------------- ### Handling OnPlay Event in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html/htmlelement This snippet demonstrates how to get or set the event handler for the OnPlay event in Aspose.HTML for .NET. This event fires when the media playback starts or resumes. ```C# /// /// Gets or sets event handler for OnPlay event. /// public event System.EventHandler OnPlay; ``` -------------------------------- ### Initialize ImageDevice with Rendering Options and Output File Source: https://reference.aspose.com/html/net/aspose.html.rendering.image/imagedevice/imagedevice Initializes a new instance of the ImageDevice class, providing rendering options and the output file name. ```C# public ImageDevice(ImageRenderingOptions options, string file) ``` -------------------------------- ### Get GlyphInfo String Representation Source: https://reference.aspose.com/html/net/aspose.html.rendering/glyphinfo/stringrepresentation This example demonstrates how to retrieve the string representation of a GlyphInfo object. The StringRepresentation property returns the string value associated with the glyph. ```C# using Aspose.Html.Dom; // Assuming you have a GlyphInfo object named 'glyphInfo' // GlyphInfo glyphInfo = ...; // Get the string representation string representation = glyphInfo.StringRepresentation; // You can then use this string representation as needed Console.WriteLine($"The string representation of the glyph is: {representation}"); ``` -------------------------------- ### Initialize DocDevice with Stream Provider Source: https://reference.aspose.com/html/net/aspose.html.rendering.doc/docdevice/docdevice Demonstrates initializing the DocDevice with an ICreateStreamProvider for custom stream handling during document rendering. This is useful for managing output streams in different scenarios. ```.NET // Example of initializing DocDevice with ICreateStreamProvider ICreateStreamProvider streamProvider = new CustomStreamProvider(); // Replace with your implementation DocDevice device = new DocDevice(streamProvider); ``` -------------------------------- ### Get IInterpolationColor.Position in C# Source: https://reference.aspose.com/html/net/aspose.html.drawing/iinterpolationcolor/position This example demonstrates how to retrieve the position of an interpolation color using the IInterpolationColor interface in C#. The position is returned as a float value. ```csharp using Aspose.Html.Drawing; // Assuming 'interpolationColor' is an instance of a class implementing IInterpolationColor // For example: // IInterpolationColor interpolationColor = new InterpolationColor(new Color(255, 0, 0), 0.5f); float position = interpolationColor.Position; // You can then use the 'position' variable, for example, print it to the console: // Console.WriteLine($"The position of the interpolation color is: {position}"); ``` -------------------------------- ### Aspose.Html Configuration Create Method with Builder Source: https://reference.aspose.com/html/net/aspose.html/configuration/create Creates and configures an instance of the Configuration object using a provided configuration builder action. This allows for custom setup of the Configuration object. ```csharp public static Configuration Create(Action configure) ``` -------------------------------- ### Get Element TagName in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html/htmloptionelement Retrieves the name of the HTML element, corresponding to its tag. For example, for a '
' element, this property would return 'div'. ```C# public string TagName { get; } ``` -------------------------------- ### Get Element TagName in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html/htmloptionelement/index Retrieves the name of the HTML element, corresponding to its tag. For example, for a '
' element, this property would return 'div'. ```C# public string TagName { get; } ``` -------------------------------- ### Initialize XpsDevice with ICreateStreamProvider Source: https://reference.aspose.com/html/net/aspose.html.rendering.xps/xpsdevice/xpsdevice Initializes a new instance of the XpsDevice class using an ICreateStreamProvider. This constructor is used to specify how output streams for XPS documents are created. ```.NET public XpsDevice(ICreateStreamProvider streamProvider) ``` -------------------------------- ### Instantiate XpsRenderingOptions Source: https://reference.aspose.com/html/net/aspose.html.rendering.xps/xpsrenderingoptions/xpsrenderingoptions Demonstrates the instantiation of the XpsRenderingOptions class using its default constructor. This class is part of the Aspose.HTML for .NET library and is used for XPS rendering. ```csharp public XpsRenderingOptions() ``` -------------------------------- ### Get TextSpan in C# Source: https://reference.aspose.com/html/net/aspose.html.toolkit.markdown.syntax/textsyntaxnode/span Retrieves the span information for a TextSyntaxNode. This property is part of the TextSyntaxNode class and returns a TextSpan struct, which defines the start and length of the text segment. ```C# public virtual TextSpan Span { get; } ``` -------------------------------- ### Retrieving Child Nodes in C# Source: https://reference.aspose.com/html/net/aspose.html/htmlisindexelement Illustrates how to get a live NodeList of all child nodes (elements, text, comments) of an HTML element. The list is indexed starting from 0. ```C# var childNodes = element.ChildNodes; ``` -------------------------------- ### ImageDevice Constructors Source: https://reference.aspose.com/html/net/aspose.html.rendering.image/imagedevice Initializes a new instance of the ImageDevice class with various parameters including stream providers, streams, file names, and image rendering options. ```C# ImageDevice(ICreateStreamProvider provider) ImageDevice(Stream stream) ImageDevice(string fileName) ImageDevice(ImageRenderingOptions options, ICreateStreamProvider provider) ImageDevice(ImageRenderingOptions options, Stream stream) ImageDevice(ImageRenderingOptions options, string fileName) ``` -------------------------------- ### Initialize HTMLDocument with Content, Base URI, and Configuration - C# Source: https://reference.aspose.com/html/net/aspose.html/htmldocument/htmldocument Initializes a new instance of the HTMLDocument class with HTML content, a base URI, and configuration. This constructor synchronously loads external resources and allows for custom environment settings. ```C# public HTMLDocument(string content, string baseUri, Configuration configuration) ``` -------------------------------- ### Handling OnLoadStart Event in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html/htmlelement This snippet demonstrates how to get or set the event handler for the OnLoadStart event in Aspose.HTML for .NET. This event fires when the browser starts loading media data. ```C# /// /// Gets or sets event handler for OnLoadStart event. /// public event System.EventHandler OnLoadStart; ``` -------------------------------- ### Get SVGLineElement.X1 Property Value Source: https://reference.aspose.com/html/net/aspose.html.dom.svg/svglineelement/x1 Retrieves the value of the X1 property from an SVGLineElement object. This property corresponds to the 'x1' attribute of the SVG 'line' element, defining the starting x-coordinate. ```C# public SVGAnimatedLength X1 { get; } ``` -------------------------------- ### Initialize Page with Size and Margin (C#) Source: https://reference.aspose.com/html/net/aspose.html.drawing/page/page Initializes a new instance of the Page class, specifying both the page size and margin. This constructor requires instances of the Size and Margin classes. ```C# public Page(Size size, Margin margin) ``` -------------------------------- ### Handling OnPlaying Event in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html/htmltablecolelement This snippet shows how to get or set the event handler for the OnPlaying event in Aspose.HTML for .NET. This event fires when the media has started playing. ```C# /// /// Gets or sets event handler for OnPlaying event. /// public event System.EventHandler OnPlaying; ``` -------------------------------- ### Initialize ImageDevice with Rendering Options and Stream Provider Source: https://reference.aspose.com/html/net/aspose.html.rendering.image/imagedevice/imagedevice Initializes a new instance of the ImageDevice class, specifying rendering options and a stream provider for output. ```C# public ImageDevice(ImageRenderingOptions options, ICreateStreamProvider streamProvider) ``` -------------------------------- ### Handling OnPlaying Event in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html/htmllabelelement This snippet shows how to get or set the event handler for the OnPlaying event in Aspose.HTML for .NET. This event fires when the media has started playing. ```C# /// /// Gets or sets event handler for OnPlaying event. /// public event System.EventHandler OnPlaying; ``` -------------------------------- ### PageSetup Class Definition Source: https://reference.aspose.com/html/net/aspose.html.rendering/pagesetup Defines the PageSetup class, which represents a page setup object used for configuring the output page. This class is part of the Aspose.Html.Rendering namespace. ```C# public class PageSetup ``` -------------------------------- ### Initialize DocDevice with Output File Name Source: https://reference.aspose.com/html/net/aspose.html.rendering.doc/docdevice/docdevice Initializes a new instance of the DocDevice class by specifying the output file name. The rendered content will be saved to this file. ```C# public DocDevice(string file) ``` -------------------------------- ### Handling OnPlaying Event in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html/htmlframesetelement This snippet shows how to get or set the event handler for the OnPlaying event in Aspose.HTML for .NET. This event fires when the media has started playing. ```C# /// /// Gets or sets event handler for OnPlaying event. /// public event System.EventHandler OnPlaying; ``` -------------------------------- ### Initialize PdfDevice with Rendering Options and Output Stream Source: https://reference.aspose.com/html/net/aspose.html.rendering.pdf/pdfdevice/pdfdevice Initializes a new instance of the PdfDevice class with rendering options and an output stream. This provides control over rendering behavior and directs the output to a specified stream. ```C# public PdfDevice(PdfRenderingOptions options, Stream stream) ``` -------------------------------- ### Handling OnPlay Event in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html/htmlmapelement This example demonstrates handling the OnPlay event for media elements in Aspose.HTML for .NET. This event fires when the media playback starts or resumes. ```C# /// /// Gets or sets event handler for OnPlay event. /// public event System.EventHandler OnPlay; ``` -------------------------------- ### Initialize HTMLDocument - With Configuration Source: https://reference.aspose.com/html/net/aspose.html/htmldocument/htmldocument Initializes a new instance of the HTMLDocument class with a specified Configuration object. The configuration allows customization of the environment. ```C# public HTMLDocument(Configuration configuration) ``` -------------------------------- ### Get Current SVG Document Time Source: https://reference.aspose.com/html/net/aspose.html.dom.svg/svgsvgelement Returns the current time in seconds relative to the start time of the SVG document fragment. Returns 0 if called before the document timeline has begun. ```C# GetCurrentTime() ``` -------------------------------- ### Aspose.HTML for .NET: IConfigurationBuilder Interface Documentation Source: https://reference.aspose.com/html/net/aspose.html/float64array/bytes_per_element Documentation for the IConfigurationBuilder interface in Aspose.HTML for .NET. This interface is used for building configuration objects. ```.NET public interface IConfigurationBuilder ``` -------------------------------- ### Handle OnPlay Event in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html.dom.svg/svgdocument This code demonstrates how to get or set an event handler for the OnPlay event in Aspose.HTML for .NET, which is triggered when media playback starts or resumes. ```C# event OnPlay; ``` -------------------------------- ### Handling OnPlay Event in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html/htmltablecolelement This snippet demonstrates how to get or set the event handler for the OnPlay event in Aspose.HTML for .NET. This event fires when the media playback starts or resumes. ```C# /// /// Gets or sets event handler for OnPlay event. /// public event System.EventHandler OnPlay; ``` -------------------------------- ### Aspose.Html Configuration Create Method Source: https://reference.aspose.com/html/net/aspose.html/configuration/create Creates and configures an instance of the Configuration object. This overload does not take any parameters and returns a default Configuration instance. ```csharp public static Configuration Create() ``` -------------------------------- ### Initialize DocDevice with ICreateStreamProvider Source: https://reference.aspose.com/html/net/aspose.html.rendering.doc/docdevice/docdevice Initializes a new instance of the DocDevice class using an ICreateStreamProvider. This allows for custom stream handling during the rendering process. ```C# public DocDevice(ICreateStreamProvider streamProvider) ``` -------------------------------- ### Handling OnPlay Event in Aspose.HTML for .NET Source: https://reference.aspose.com/html/net/aspose.html/htmloptgroupelement This snippet demonstrates how to get or set the event handler for the OnPlay event in Aspose.HTML for .NET. This event fires when the media playback starts or resumes. ```C# /// /// Gets or sets event handler for OnPlay event. /// public event HtmlElementEventHandler OnPlay; ``` -------------------------------- ### Initialize HTMLDocument with Address and Configuration - C# Source: https://reference.aspose.com/html/net/aspose.html/htmldocument/htmldocument Initializes a new instance of the HTMLDocument class with a specified address and configuration. This constructor synchronously loads external resources, and the configuration allows for managing environment settings. ```C# public HTMLDocument(string address, Configuration configuration) ```