### Get Elements by Tag Name in SVG Source: https://reference.aspose.com/svg/net/aspose.svg/svgpathelement Returns an HTMLCollection of all elements with a given tag name, in the order they appear in the document. For example, to get all 'rect' elements. ```javascript const rects = element.getElementsByTagName('rect'); for (let i = 0; i < rects.length; i++) { console.log(rects[i]); } ``` -------------------------------- ### PageSetup Methods Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/pagesetup Documentation for the methods of the PageSetup class. ```APIDOC ## PageSetup Methods ### SetLeftRightPage Sets the Left/Right page configuration. **Parameters:** - **leftPage** (Page) - Configuration for the left page. - **rightPage** (Page) - Configuration for the right page. **Returns:** `void` ### See Also - namespace Aspose.Svg.Rendering - assembly Aspose.SVG ``` -------------------------------- ### Document.OnPlaying Event Source: https://reference.aspose.com/svg/net/aspose.svg.dom/document/onplaying Handles the OnPlaying event for the Document object. Allows setting and getting event handlers for when playback starts. ```APIDOC ## Document.OnPlaying Event ### Description Gets or sets event handler for OnPlaying event. ### Method Event Handler ### Endpoint N/A (Class Event) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```csharp public event DOMEventHandler OnPlaying; ``` ### Response #### Success Response (200) N/A (Event Handler) #### Response Example ```csharp // Example of how to set an event handler document.OnPlaying += MyPlaybackHandler; // Example of how to remove an event handler document.OnPlaying -= MyPlaybackHandler; ``` ### See Also - delegate DOMEventHandler - class Document - namespace Aspose.Svg.Dom - assembly Aspose.SVG ``` -------------------------------- ### Create Configuration Instance in C# Source: https://reference.aspose.com/svg/net/aspose.svg/configuration Demonstrates how to create and configure an instance of the Configuration object using static methods. These methods allow for initial setup of the application's environment settings. ```csharp static Configuration Create() static Configuration Create(Action) ``` -------------------------------- ### Get or Set Gradient Region - ILinearGradientBrush.Rect (C#) Source: https://reference.aspose.com/svg/net/aspose.svg.drawing/ilineargradientbrush/rect This C# code snippet demonstrates how to get or set the rectangular region that defines the starting and ending points of a gradient using the Rect property of the ILinearGradientBrush interface in Aspose.SVG for .NET. It returns a RectangleF object representing the gradient's boundaries. ```csharp public RectangleF Rect { get; set; } ``` -------------------------------- ### Device Constructor Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/device/device Initializes a new instance of the Device class. ```APIDOC ## Device Constructor ### Description Initializes a new instance of the `Device` class. ### Method `public Device()` ### Endpoint N/A (Class Constructor) ### Parameters None ### Request Body None ### Response N/A (Constructor) ### See Also * class Device * namespace Aspose.Svg.Rendering * assembly Aspose.SVG ``` -------------------------------- ### PdfSaveOptions.PageSetup Property - C# Source: https://reference.aspose.com/svg/net/aspose.svg.saving/pdfsaveoptions Gets a PageSetup object used for configuring the output page setup. This allows control over page size, margins, and orientation of the generated PDF. ```csharp PageSetup { get; } ``` -------------------------------- ### PageSetup Class Overview Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/pagesetup Details about the PageSetup class, its purpose, and namespace. ```APIDOC ## PageSetup Class Represents a page setup object used for configuring output page-sets. ### Namespace Aspose.Svg.Rendering ### Class Definition ```csharp public class PageSetup ``` ``` -------------------------------- ### Support & Resources API Source: https://reference.aspose.com/svg/net/index Access support documentation, API references, tutorials, and other resources. ```APIDOC ## GET /api/support/docs ### Description Retrieves a list of documentation links for Aspose products. ### Method GET ### Endpoint /api/support/docs ### Response #### Success Response (200) - **documentation** (array) - A list of documentation entries. - **product_name** (string) - The name of the product. - **url** (string) - The URL to the documentation. #### Response Example { "documentation": [ { "product_name": "Aspose.SVG", "url": "https://docs.aspose.com/svg/" } ] } ## GET /api/support/api-reference ### Description Retrieves links to the API reference for Aspose products. ### Method GET ### Endpoint /api/support/api-reference ### Response #### Success Response (200) - **api_references** (array) - A list of API reference entries. - **product_name** (string) - The name of the product. - **url** (string) - The URL to the API reference. #### Response Example { "api_references": [ { "product_name": "Aspose.SVG for .NET", "url": "https://reference.aspose.com/svg/net/" } ] } ``` -------------------------------- ### Aspose.SVG SVGAngle.Value Property Example Source: https://reference.aspose.com/svg/net/aspose.svg.datatypes/svgangle/value This C# code snippet demonstrates how to use the SVGAngle.Value property to get and set the angle value in degrees. Setting the Value property automatically updates the valueInSpecifiedUnits and valueAsString properties. ```csharp public float Value { get; set; } ``` -------------------------------- ### ICSS2Properties.Clear Property C# Example Source: https://reference.aspose.com/svg/net/aspose.svg.dom.css/icss2properties/clear Demonstrates the structure of the Clear property within the ICSS2Properties interface in C#. This property is used to get or set the value of the CSS 'clear' property, controlling element positioning relative to floated elements. ```csharp public string Clear { get; set; } ``` -------------------------------- ### XpsDevice Constructors Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.xps/xpsdevice Lists the available constructors for the XpsDevice class, used to initialize new instances. ```APIDOC ## Constructors | Name | Description | | -------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | `XpsDevice(_ICreateStreamProvider_)` | Initializes a new instance of the `XpsDevice` class. | | `XpsDevice(_Stream_)` | Initializes a new instance of the `XpsDevice` class. | | `XpsDevice(_string_)` | Initializes a new instance of the `XpsDevice` class. | | `XpsDevice(_XpsRenderingOptions, ICreateStreamProvider_)` | Initializes a new instance of the `XpsDevice` class by rendering options and stream provider. | | `XpsDevice(_XpsRenderingOptions, Stream_)` | Initializes a new instance of the `XpsDevice` class by rendering options and output stream. | | `XpsDevice(_XpsRenderingOptions, string_)` | Initializes a new instance of the `XpsDevice` class by rendering options and output file name. | ``` -------------------------------- ### Get SVGLinearGradientElement.X1 Property Value in C# Source: https://reference.aspose.com/svg/net/aspose.svg/svglineargradientelement/x1 This snippet demonstrates how to access the X1 property of an SVGLinearGradientElement in C#. The X1 property returns an SVGAnimatedLength object, representing the 'x1' attribute of the 'linearGradient' element. This is essential for manipulating the starting point of a linear gradient. ```csharp public SVGAnimatedLength X1 { get; } ``` -------------------------------- ### Device Class Overview Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/device Provides information about the Device class, its purpose, and how to initialize it. ```APIDOC ## Device Class ### Description Represents a base class for implementing rendering devices that are used to draw graphics in various formats and environments. ### Syntax ```csharp public abstract class Device ``` ### Constructors #### Device() Initializes a new instance of the `Device` class. ### See Also * namespace Aspose.Svg.Rendering * assembly Aspose.SVG * CssOptions Class * DeviceTGraphicContextTRenderingOptions Class ``` -------------------------------- ### SVGPathSegArcAbs.SweepFlag Property Example - Aspose.SVG Source: https://reference.aspose.com/svg/net/aspose.svg.paths/svgpathsegarcabs/sweepflag This code snippet demonstrates the usage of the SVGPathSegArcAbs.SweepFlag property in C#. This property is used to get or set the value of the sweep-flag parameter for an SVG arc segment. It returns a boolean value and can throw a DOMException if the attribute is read-only. ```csharp public bool SweepFlag { get; set; } ``` -------------------------------- ### PageSetup Properties Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/pagesetup Documentation for the properties of the PageSetup class. ```APIDOC ## PageSetup Properties ### AnyPage Gets or sets all pages configuration in the the page-sequence. **Type:** `object` (or specific type if known) ### AtPagePriority Gets or sets `AtPagePriority` which will determine order of applying page size declarations. By default options will override css `@page` rules. **Type:** `object` (or specific type if known) ### FirstPage Gets or sets the first page configuration. **Type:** `object` (or specific type if known) ### LeftPage Gets the Odd Page configuration. **Type:** `object` (or specific type if known) ### RightPage Gets the Even Page configuration. **Type:** `object` (or specific type if known) ### Sizing Gets or sets the sizing type. **Type:** `object` (or specific type if known) ``` -------------------------------- ### C# ICSS2Properties Azimuth Property Example Source: https://reference.aspose.com/svg/net/aspose.svg.dom.css/icss2properties/azimuth This C# code snippet demonstrates the declaration of the Azimuth property within the ICSS2Properties interface in Aspose.SVG for .NET. This property is used to get and set the azimuth value, which defines the direction of sound in three dimensions. ```csharp public string Azimuth { get; set; } ``` -------------------------------- ### RenderingOptions Constructor Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/renderingoptions/renderingoptions Initializes a new instance of the RenderingOptions class. ```APIDOC ## RenderingOptions constructor ### Description Initializes a new instance of the `RenderingOptions` class. ### Method Constructor ### Endpoint N/A ### Parameters None ### Request Example ```csharp RenderingOptions options = new RenderingOptions(); ``` ### Response #### Success Response (200) N/A (Constructor) #### Response Example N/A ``` -------------------------------- ### Device.BeginDocument Method Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/device-2/begindocument Begins the rendering process for a given document using the Device rendering context. ```APIDOC ## Device.BeginDocument Method ### Description Begins rendering of the document. ### Method `public virtual void BeginDocument(Document document)` ### Parameters #### Path Parameters - **document** (Document) - Required - The document to begin rendering. ### Request Example ```json { "document": { /* Document object */ } } ``` ### Response #### Success Response (200) This method does not return a value. #### Response Example ```json null ``` ### See Also - class Document - class Device - namespace Aspose.Svg.Rendering - assembly Aspose.SVG ``` -------------------------------- ### Get Node Name - Aspose.SVG C# Example Source: https://reference.aspose.com/svg/net/aspose.svg.dom/node/nodename This C# code snippet demonstrates how to retrieve the NodeName property of a node in Aspose.SVG. The NodeName property returns a string representing the name of the node, with its value varying based on the node's type. ```csharp public abstract string NodeName { get; } ``` -------------------------------- ### Get Current SVG Time - Aspose.SVG Source: https://reference.aspose.com/svg/net/aspose.svg/svgsvgelement/getcurrenttime The GetCurrentTime method returns the current time in seconds relative to the start of the SVG document fragment. It returns 0 if the document timeline has not yet begun. This is useful for tracking playback or animation progress within an SVG. ```csharp public float GetCurrentTime() ``` -------------------------------- ### RenderingOptions.PageSetup Property Documentation Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/renderingoptions/pagesetup Details about the RenderingOptions.PageSetup property, including its purpose, value, and related classes. ```APIDOC ## RenderingOptions.PageSetup Property ### Description Gets a page setup object is used for configuration output page-set. ### Property Type `PageSetup` ### Access Public get accessor. ### Property Value The page setup. ### See Also * class [PageSetup] * class [RenderingOptions] * namespace [Aspose.Svg.Rendering] * assembly [Aspose.SVG] ``` -------------------------------- ### Get and Set Rectangle Width - Aspose.SVG Source: https://reference.aspose.com/svg/net/aspose.svg.datatypes/svgrect/width The `SVGRect.Width` property allows you to get or set the width coordinate of a rectangle in user units. It is a public float property with get and set accessors. Exceptions may occur if the rectangle is read-only. ```csharp public float Width { get; set; } ``` -------------------------------- ### Initialize XpsDevice with Options and Stream Provider in C# Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.xps/xpsdevice/xpsdevice Initializes a new instance of the XpsDevice class with specified rendering options and an ICreateStreamProvider. This allows for fine-grained control over XPS output, including custom stream management. The XpsRenderingOptions enable configuration of various rendering parameters. ```csharp public XpsDevice(XpsRenderingOptions options, ICreateStreamProvider streamProvider) ``` -------------------------------- ### Initialize Aspose.SVG Device Constructor Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/device/device Initializes a new instance of the Device class. This is a fundamental step for setting up rendering operations within the Aspose.SVG library. No specific dependencies are required beyond the Aspose.SVG assembly. ```csharp public Device() ``` -------------------------------- ### Get Output Stream - Aspose.SVG Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/device-2/outputstream The OutputStream property of the Device class in Aspose.SVG allows you to get the current output stream. This stream is used to write the rendered SVG content. No specific input or output stream needs to be provided when getting the stream; it's an accessor to the stream already in use by the device. ```csharp protected Stream OutputStream { get; } ``` -------------------------------- ### RequestMessage.Method Property Source: https://reference.aspose.com/svg/net/aspose.svg.net/requestmessage/method Provides access to the HttpMethod associated with a RequestMessage. This property allows you to get or set the HTTP method (e.g., GET, POST) for a request. ```APIDOC ## GET /api/requestmessage/method ### Description Gets or sets the `HttpMethod` for the `RequestMessage`. ### Method GET (for retrieval), SET (for modification) ### Endpoint `/api/requestmessage/method` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body * **method** (string) - Optional - The HTTP method to set. ### Request Example ```json { "method": "POST" } ``` ### Response #### Success Response (200) * **method** (string) - The current HTTP method. #### Response Example ```json { "method": "GET" } ``` ### See Also * class `HttpMethod` * class `RequestMessage` * namespace `Aspose.Svg.Net` * assembly `Aspose.SVG` ``` -------------------------------- ### Initialize Page with Size and Margin (C#) Source: https://reference.aspose.com/svg/net/aspose.svg.drawing/page/page Initializes a new instance of the Page class with specified size and margin. Requires Aspose.SVG library. ```csharp public Page(Size size, Margin margin) ``` -------------------------------- ### PageSetup.AnyPage Property Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/pagesetup/anypage This section details the PageSetup.AnyPage property, which allows for the configuration of all pages within a page-sequence. ```APIDOC ## PageSetup.AnyPage Property ### Description Gets or sets all pages configuration in the the page-sequence. ### Property Type `Page` ### Returns Returns `Page`. ### See Also * class `Page` * class `PageSetup` * namespace `Aspose.Svg.Rendering` * assembly `Aspose.SVG` ``` -------------------------------- ### Get FontWeight Property in C# | Aspose.SVG Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.fonts/fontmatchingproperties/fontweight This C# code snippet demonstrates how to get the font weight value from the FontWeight property of the FontMatchingProperties class. It is part of the Aspose.Svg.Rendering.Fonts namespace. ```csharp public int FontWeight { get; } ``` -------------------------------- ### XpsDevice Constructors Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.xps/xpsdevice/xpsdevice This section details the various constructors available for the XpsDevice class, used for initializing XPS rendering with different configurations. ```APIDOC ## XpsDevice Constructors ### Initialize XpsDevice with ICreateStreamProvider Initializes a new instance of the `XpsDevice` class with a stream provider. **Method:** Constructor **Parameters:** * **streamProvider** (ICreateStreamProvider) - Required - The stream provider. ### Initialize XpsDevice with XpsRenderingOptions and ICreateStreamProvider Initializes a new instance of the `XpsDevice` class with rendering options and a stream provider. **Method:** Constructor **Parameters:** * **options** (XpsRenderingOptions) - Required - Rendering options. * **streamProvider** (ICreateStreamProvider) - Required - Object that implements the `ICreateStreamProvider` interface. ### Initialize XpsDevice with File Path Initializes a new instance of the `XpsDevice` class with an output file name. **Method:** Constructor **Parameters:** * **file** (string) - Required - The output file name. ### Initialize XpsDevice with XpsRenderingOptions and File Path Initializes a new instance of the `XpsDevice` class with rendering options and an output file name. **Method:** Constructor **Parameters:** * **options** (XpsRenderingOptions) - Required - Rendering options. * **file** (string) - Required - The output file name. ### Initialize XpsDevice with Stream Initializes a new instance of the `XpsDevice` class with an output stream. **Method:** Constructor **Parameters:** * **stream** (Stream) - Required - The stream. ### Initialize XpsDevice with XpsRenderingOptions and Stream Initializes a new instance of the `XpsDevice` class with rendering options and an output stream. **Method:** Constructor **Parameters:** * **options** (XpsRenderingOptions) - Required - Rendering options. * **stream** (Stream) - Required - The output stream. ``` -------------------------------- ### Get or Set Response Message - C# Source: https://reference.aspose.com/svg/net/aspose.svg.net/inetworkoperationcontext/response This snippet demonstrates how to get or set the ResponseMessage for an INetworkOperationContext. It is part of the Aspose.SVG library for .NET, allowing manipulation of network responses. ```csharp public ResponseMessage Response { get; set; } ``` -------------------------------- ### Initialize XpsDevice with Options and Stream in C# Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.xps/xpsdevice/xpsdevice Initializes a new instance of the XpsDevice class with rendering options and an output Stream. This provides control over rendering while directing the output to a pre-existing stream. The XpsRenderingOptions allow customization of the XPS output, and the Stream object defines the target for the rendering. ```csharp public XpsDevice(XpsRenderingOptions options, Stream stream) ``` -------------------------------- ### Get Border Bottom Color - C# Source: https://reference.aspose.com/svg/net/aspose.svg.dom.css/icss2properties/borderbottomcolor This C# code snippet demonstrates how to get the value of the border-bottom-color property using the ICSS2Properties interface. It returns the border-bottom-color property of the element. ```csharp public string BorderBottomColor { get; set; } ``` -------------------------------- ### Get or Set PageUrlRestriction - C# Source: https://reference.aspose.com/svg/net/aspose.svg.saving/resourcehandlingoptions/pageurlrestriction This C# code snippet demonstrates how to get or set the PageUrlRestriction property for ResourceHandlingOptions. This property controls the URL restrictions applied to handled pages. The default value is RootAndSubFolders. ```csharp public UrlRestriction PageUrlRestriction { get; set; } ``` -------------------------------- ### PdfDevice Constructors Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.pdf/pdfdevice/pdfdevice This section details the different constructors available for the PdfDevice class, allowing for initialization with stream providers, rendering options, file paths, and streams. ```APIDOC ## PdfDevice(_ICreateStreamProvider_) ### Description Initializes a new instance of the `PdfDevice` class. ### Method CONSTRUCTOR ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example ``` // Example usage not provided in source text ``` ### Response #### Success Response (200) N/A (Constructor) #### Response Example ``` // Example usage not provided in source text ``` --- ## PdfDevice(_PdfRenderingOptions, ICreateStreamProvider_) ### Description Initializes a new instance of the `PdfDevice` class by rendering options and stream provider. ### Method CONSTRUCTOR ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example ``` // Example usage not provided in source text ``` ### Response #### Success Response (200) N/A (Constructor) #### Response Example ``` // Example usage not provided in source text ``` --- ## PdfDevice(_string_) ### Description Initializes a new instance of the `PdfDevice` class. ### Method CONSTRUCTOR ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example ``` // Example usage not provided in source text ``` ### Response #### Success Response (200) N/A (Constructor) #### Response Example ``` // Example usage not provided in source text ``` --- ## PdfDevice(_PdfRenderingOptions, string_) ### Description Initializes a new instance of the `PdfDevice` class by rendering options and output file name. ### Method CONSTRUCTOR ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example ``` // Example usage not provided in source text ``` ### Response #### Success Response (200) N/A (Constructor) #### Response Example ``` // Example usage not provided in source text ``` --- ## PdfDevice(_Stream_) ### Description Initializes a new instance of the `PdfDevice` class. ### Method CONSTRUCTOR ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example ``` // Example usage not provided in source text ``` ### Response #### Success Response (200) N/A (Constructor) #### Response Example ``` // Example usage not provided in source text ``` --- ## PdfDevice(_PdfRenderingOptions, Stream_) ### Description Initializes a new instance of the `PdfDevice` class by rendering options and output stream. ### Method CONSTRUCTOR ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example ``` // Example usage not provided in source text ``` ### Response #### Success Response (200) N/A (Constructor) #### Response Example ``` // Example usage not provided in source text ``` ``` -------------------------------- ### Initialize XpsDevice with Options and File Path in C# Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.xps/xpsdevice/xpsdevice Initializes a new instance of the XpsDevice class with rendering options and a specified output file path. This constructor combines configuration flexibility with direct file output, allowing developers to control rendering aspects while outputting to a designated file. The XpsRenderingOptions object customizes the XPS generation process. ```csharp public XpsDevice(XpsRenderingOptions options, string file) ``` -------------------------------- ### Get and Set Response URI in C# Source: https://reference.aspose.com/svg/net/aspose.svg.net/responsemessage/responseuri This code snippet demonstrates how to get and set the response URI using the ResponseUri property of the ResponseMessage class. The property returns or accepts a Url object representing the URI. ```csharp public Url ResponseUri { get; set; } ``` -------------------------------- ### Set and Get Directory in FileCreateStreamProvider (C#) Source: https://reference.aspose.com/svg/net/aspose.svg.io/filecreatestreamprovider/directory The FileCreateStreamProvider.Directory property in Aspose.SVG allows you to specify or retrieve the directory path for file operations. This property is of type string and can be accessed directly to set or get the directory. ```csharp public string Directory { get; set; } ``` -------------------------------- ### Product Information - All Products Source: https://reference.aspose.com/svg/net/aspose.svg.dom/document/onloadstart Retrieves a list of all available Aspose products. ```APIDOC ## GET /api/products ### Description Fetches a comprehensive list of all Aspose products and their details. ### Method GET ### Endpoint /api/products ### Response #### Success Response (200) - **products** (array) - An array of product objects. - **name** (string) - The name of the product. - **description** (string) - A brief description of the product. - **category** (string) - The category the product belongs to. #### Response Example ```json { "products": [ { "name": "Aspose.Words", "description": "A powerful API for creating and manipulating Word documents.", "category": "Product Solution" }, { "name": "Aspose.PDF", "description": "Enables PDF document creation, manipulation, and conversion.", "category": "Product Solution" } ] } ``` ``` -------------------------------- ### Set and Get Length - C# Source: https://reference.aspose.com/svg/net/aspose.svg.drawing/lengthorauto/length This C# code snippet demonstrates how to get and set the 'Length' property of the LengthOrAuto class. The 'Length' property is of type 'Length' and is used to define the length value. ```csharp public Length Length { get; set; } ``` -------------------------------- ### Aspose.SVG Configuration API Source: https://reference.aspose.com/svg/net/aspose.svg/configuration/configuration Provides information on initializing and configuring the Aspose.SVG environment. ```APIDOC ## Configuration Constructor ### Description Initializes a new instance of the `Configuration` class. ### Method `Configuration()` ### Endpoint N/A (Class Constructor) ### Parameters None ### Request Example ```csharp // Example of calling the constructor Aspose.Svg.Configuration config = new Aspose.Svg.Configuration(); ``` ### Response N/A (Constructor does not return a value) ``` -------------------------------- ### DeviceConfiguration Constructor Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/device-2.deviceconfiguration-2/deviceconfiguration Provides documentation for the default constructor of the DeviceConfiguration class in Aspose.SVG. ```APIDOC ## Device.DeviceConfiguration constructor ### Description The default constructor. ### Method Constructor ### Endpoint N/A ### Parameters None ### Request Example ```csharp new DeviceConfiguration() ``` ### Response #### Success Response (Constructor) Initializes a new instance of the DeviceConfiguration class. #### Response Example N/A ``` -------------------------------- ### Get and Set FontStyle Property - Aspose.SVG C# Source: https://reference.aspose.com/svg/net/aspose.svg.dom.css/icss2properties/fontstyle This C# code snippet demonstrates how to get and set the FontStyle property of the ICSS2Properties interface. This property directly maps to the 'font-style' CSS property. ```csharp public string FontStyle { get; set; } ``` -------------------------------- ### Set and Get Rectangle Height - Aspose.SVG C# Source: https://reference.aspose.com/svg/net/aspose.svg.datatypes/svgrect/height The Height property of the SVGRect class allows you to get or set the height coordinate of a rectangle in user units. It can throw a DOMException if the rectangle is read-only. ```csharp public float Height { get; set; } ``` -------------------------------- ### Initialize ImageDevice with Options and Stream Provider (C#) Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.image/imagedevice/imagedevice Initializes a new instance of the ImageDevice class with specified rendering options and a stream provider. This allows for fine-grained control over image output. It requires an ImageRenderingOptions object and an ICreateStreamProvider. ```csharp public ImageDevice(ImageRenderingOptions options, ICreateStreamProvider streamProvider) ``` -------------------------------- ### Set and Get Stroke Brush in Aspose.SVG GraphicContext Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/graphiccontext/strokebrush The GraphicContext.StrokeBrush property allows you to set or get the IBrush object used for stroking paths in SVG rendering. This property is virtual and part of the Aspose.Svg.Rendering namespace. ```csharp public virtual IBrush StrokeBrush { get; set; } ``` -------------------------------- ### Initialize ImageDevice with Options and File Path (C#) Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.image/imagedevice/imagedevice Initializes a new instance of the ImageDevice class with rendering options and a specified output file path. This enables customized image rendering to a file. It accepts an ImageRenderingOptions object and a string for the file name. ```csharp public ImageDevice(ImageRenderingOptions options, string file) ``` -------------------------------- ### Get or Set Line Width - Aspose.SVG for .NET Source: https://reference.aspose.com/svg/net/aspose.svg.imagevectorization/imagevectorizerconfiguration/linewidth The LineWidth property in Aspose.SVG for .NET allows you to get or set the line width for vectorization. The value is scaled by the graphics scale factor, and its default is 1. ```csharp public float LineWidth { get; set; } ``` -------------------------------- ### License Constructor and Usage Source: https://reference.aspose.com/svg/net/aspose.svg/license/license This section details the initialization of the License class and provides examples for setting the license using a file path. ```APIDOC ## License Constructor ### Description Initializes a new instance of the License class. ### Method ``` public License() ``` ### Endpoint N/A (Class Constructor) ### Parameters None ### Request Body None ### Request Example **C# Example:** ```csharp License license = new License(); license.SetLicense("MyLicense.lic"); ``` **Java Example (component jar file):** ```java License license = new License(); license.setLicense("MyLicense.lic"); ``` ### Response #### Success Response (200) N/A (Constructor) #### Response Example N/A (Constructor) ``` -------------------------------- ### Configuration.Create() Source: https://reference.aspose.com/svg/net/aspose.svg/configuration/create Creates and configures an instance of the Configuration object without any specific configuration actions. ```APIDOC ## Create() ### Description Create and configure the instance of Configuration object. ### Method `public static Configuration Create()` ### Return Value The instance of Configuration object. ### See Also - class Configuration - namespace Aspose.Svg - assembly Aspose.SVG ``` -------------------------------- ### Get and Set UnicodeBidi Property - C# Source: https://reference.aspose.com/svg/net/aspose.svg.dom.css/icss2properties/unicodebidi This C# code snippet demonstrates how to get and set the unicode-bidi property using the ICSS2Properties interface in Aspose.SVG. It highlights the property's string type for its value. ```csharp public string UnicodeBidi { get; set; } ``` -------------------------------- ### Get and Set FontFamily Property - C# Source: https://reference.aspose.com/svg/net/aspose.svg.dom.css/icss2properties/fontfamily This C# code snippet demonstrates how to get and set the FontFamily property of the ICSS2Properties interface. This property corresponds to the 'font-family' definition in CSS2. It is part of the Aspose.Svg.Dom.Css namespace. ```csharp public string FontFamily { get; set; } ``` -------------------------------- ### ImageRenderingOptions Constructors Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.image/imagerenderingoptions/imagerenderingoptions Provides documentation for the constructors of the ImageRenderingOptions class. ```APIDOC ## ImageRenderingOptions() ### Description Initializes a new instance of the `ImageRenderingOptions` class; Png will be used as default image format. ### Method Constructor ### Endpoint N/A (Class Constructor) ### Parameters None ### Request Example ```csharp // No request body for constructor ``` ### Response #### Success Response (N/A) Initializes an ImageRenderingOptions object. #### Response Example ```csharp // No direct response for constructor, object is created ``` ## ImageRenderingOptions(ImageFormat format) ### Description Initializes a new instance of the `ImageRenderingOptions` class with specified image format. ### Method Constructor ### Endpoint N/A (Class Constructor) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```csharp // No request body for constructor ``` ### Response #### Success Response (N/A) Initializes an ImageRenderingOptions object with a specified format. #### Response Example ```csharp // No direct response for constructor, object is created ``` ### See Also * enum ImageFormat * class ImageRenderingOptions * namespace Aspose.Svg.Rendering.Image * assembly Aspose.SVG ``` -------------------------------- ### Initialize PdfDevice with PdfRenderingOptions and Stream Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.pdf/pdfdevice/pdfdevice Initializes a new instance of the PdfDevice class with rendering options and an output stream. This constructor provides fine-grained control over PDF rendering and allows output to be directed to any stream. ```csharp public PdfDevice(PdfRenderingOptions options, Stream stream) ``` -------------------------------- ### Get and Set BorderLeft Property in C# Source: https://reference.aspose.com/svg/net/aspose.svg.dom.css/icss2properties/borderleft This code snippet demonstrates how to get and set the 'border-left' property using the ICSS2Properties.BorderLeft property in Aspose.SVG for .NET. It returns a string representing the border-left property value. ```csharp public string BorderLeft { get; set; } ``` -------------------------------- ### SVGOptimizationOptions Constructor Source: https://reference.aspose.com/svg/net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/svgoptimizationoptions Initializes a new instance of the SVGOptimizationOptions class. This is a basic constructor for setting up default optimization options. ```APIDOC ## SVGOptimizationOptions Constructor ### Description Initializes a new instance of the `SVGOptimizationOptions` class. ### Method CONSTRUCTOR ### Endpoint N/A ### Parameters None ### Request Example ```json { "example": "new SVGOptimizationOptions()" } ``` ### Response #### Success Response (200) - **instance** (SVGOptimizationOptions) - A new instance of the SVGOptimizationOptions class. #### Response Example ```json { "example": "Instance of SVGOptimizationOptions" } ``` ``` -------------------------------- ### Get CSS Border Left Style - C# Source: https://reference.aspose.com/svg/net/aspose.svg.dom.css/icss2properties/borderleftstyle This code snippet demonstrates how to get and set the CSS 'border-left-style' property using the ICSS2Properties.BorderLeftStyle in Aspose.SVG for .NET. It returns a string representing the border style. ```csharp public string BorderLeftStyle { get; set; } ``` -------------------------------- ### Get or Set DOMTreatNullAsAttribute Value (C#) Source: https://reference.aspose.com/svg/net/aspose.svg.dom.attributes/domtreatnullasattribute/value This C# code snippet demonstrates how to get or set the 'Value' property of the DOMTreatNullAsAttribute class. This property is of type 'object' and can hold any value. It is part of the Aspose.Svg.Dom.Attributes namespace. ```csharp public object Value { get; set; } ``` -------------------------------- ### IDevice.BeginPage Method Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/idevice/beginpage The IDevice.BeginPage method is used to begin the rendering process for a new page, accepting a SizeF object to define the page dimensions. ```APIDOC ## IDevice.BeginPage ### Description Begins rendering of the new page. ### Method `public void BeginPage(SizeF size)` ### Parameters #### Path Parameters - **size** (SizeF) - Required - Size of the page. ### See Also - interface IDevice - namespace Aspose.Svg.Rendering - assembly Aspose.SVG ``` -------------------------------- ### Device.BeginPage Method Source: https://reference.aspose.com/svg/net/aspose.svg.rendering/device-2/beginpage This section describes the `BeginPage` method of the `Device` class. This method is used to initiate the rendering process for a new page, accepting the page dimensions as a parameter. ```APIDOC ## Device.BeginPage Method ### Description Begins rendering of the new page. ### Method `public virtual void BeginPage(SizeF size)` ### Endpoint N/A (This is a class method, not an API endpoint) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```csharp // Example of how to use the BeginPage method Device device = new SpecificDeviceImplementation(); SizeF pageSize = new SizeF(8.5f, 11f); // Example page size device.BeginPage(pageSize); ``` ### Response #### Success Response (Void) This method does not return a value. #### Response Example N/A ### See Also * class Device * namespace Aspose.Svg.Rendering * assembly Aspose.SVG ``` -------------------------------- ### Get Attribute from SVG Element (.NET) Source: https://reference.aspose.com/svg/net/aspose.svg/svgtspanelement Retrieves the value of an attribute from an SVG element by its name or namespace. It also provides methods to get all attribute names or specific attribute nodes. ```csharp /// /// Retrieves an attribute value by name. /// /// The name of the attribute. /// The attribute value as a string, or null if the attribute is not found. public string GetAttribute(string name) { // Implementation details... return null; } /// /// Returns the attribute names of the element as an Array of strings. /// /// An array of attribute names. public string[] GetAttributeNames() { // Implementation details... return new string[0]; } /// /// Retrieves an attribute node by name. /// /// The name of the attribute node. /// The Attr node, or null if not found. public Attr GetAttributeNode(string name) { // Implementation details... return null; } /// /// Retrieves an Attr node by local name and namespace URI. /// /// The local name of the attribute. /// The namespace URI of the attribute. /// The Attr node, or null if not found. public Attr GetAttributeNodeNS(string localName, string namespaceURI) { // Implementation details... return null; } /// /// Retrieves an attribute value by local name and namespace URI. /// /// The local name of the attribute. /// The namespace URI of the attribute. /// The attribute value as a string, or null if not found. public string GetAttributeNS(string localName, string namespaceURI) { // Implementation details... return null; } ``` -------------------------------- ### XpsRenderingOptions Constructor Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.xps/xpsrenderingoptions/xpsrenderingoptions Provides documentation for the default constructor of the XpsRenderingOptions class, used for configuring XPS rendering. ```APIDOC ## XpsRenderingOptions constructor ### Description The default constructor for the XpsRenderingOptions class. ### Method `public XpsRenderingOptions()` ### Endpoint N/A (Class Constructor) ### Parameters None ### Request Example N/A (Constructor) ### Response N/A (Constructor) ### See Also * class `XpsRenderingOptions` * namespace `Aspose.Svg.Rendering.Xps` * assembly `Aspose.SVG` ``` -------------------------------- ### Location.Search Property Source: https://reference.aspose.com/svg/net/aspose.svg.window/location/search The Location.Search property allows you to get or set the query part of a URL. When getting, it returns the query string including the leading '?'. When setting, it navigates to the same URL with the provided query string, ignoring any leading '?'. ```APIDOC ## Location.Search Property ### Description Returns the Location object’s URL’s query (includes leading “?” if non-empty). Can be set, to navigate to the same URL with a changed query(ignores leading “?”). ### Method **Get/Set** ### Endpoint **N/A** (This is a property of the Location object) ### Parameters **N/A** ### Request Example ```csharp // Getting the search query string currentQuery = location.Search; // Setting a new search query location.Search = "?newParam=value"; ``` ### Response #### Success Response - **string** - The URL's query string, or the query string set to the URL. #### Response Example ```json // When getting: "?existingParam=oldValue" // When setting: // The URL will be updated to include the new query string. ``` ### See Also - class Location - namespace Aspose.Svg.Window - assembly Aspose.SVG ``` -------------------------------- ### ImageDevice Constructors Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.image/imagedevice/imagedevice This section details the various constructors available for the ImageDevice class, used for initializing image rendering with different stream providers, rendering options, and output destinations. ```APIDOC ## ImageDevice Constructors This section details the various constructors available for the ImageDevice class, used for initializing image rendering with different stream providers, rendering options, and output destinations. ### ImageDevice(_ICreateStreamProvider_) Initializes a new instance of the `ImageDevice` class. **Parameters:** - **streamProvider** (`ICreateStreamProvider`): Required - The stream provider. ### ImageDevice(_ImageRenderingOptions, ICreateStreamProvider_) Initializes a new instance of the `ImageDevice` class by rendering options and stream provider. **Parameters:** - **options** (`ImageRenderingOptions`): Required - Rendering options. - **streamProvider** (`ICreateStreamProvider`): Required - Object that implements the `ICreateStreamProvider` interface. ### ImageDevice(_string_) Initializes a new instance of the `ImageDevice` class. **Parameters:** - **file** (`string`): Required - The output file name. ### ImageDevice(_ImageRenderingOptions, string_) Initializes a new instance of the `ImageDevice` class by rendering options and output file name. **Parameters:** - **options** (`ImageRenderingOptions`): Required - Rendering options. - **file** (`string`): Required - The output file name. ### ImageDevice(_Stream_) Initializes a new instance of the `ImageDevice` class. **Parameters:** - **stream** (`Stream`): Required - The stream. ### ImageDevice(_ImageRenderingOptions, Stream_) Initializes a new instance of the `ImageDevice` class by rendering options and output stream. **Parameters:** - **options** (`ImageRenderingOptions`): Required - Rendering options. - **stream** (`Stream`): Required - The output stream. ### See Also - `ICreateStreamProvider` interface - `ImageDevice` class - `ImageRenderingOptions` class - `Stream` class - `Aspose.Svg.Rendering.Image` namespace - `Aspose.SVG` assembly ``` -------------------------------- ### Get or Set Horizontal Resolution - Aspose.SVG C# Source: https://reference.aspose.com/svg/net/aspose.svg.services/ideviceinformationservice/horizontalresolution This C# code snippet demonstrates how to get or set the horizontal resolution using the `HorizontalResolution` property of the `IDeviceInformationService` interface. It utilizes the `Resolution` class to define the resolution value. ```csharp public Resolution HorizontalResolution { get; set; } ``` -------------------------------- ### Get Suffix from ICSSCounterStyleRule - C# Source: https://reference.aspose.com/svg/net/aspose.svg.dom.css/icsscounterstylerule/suffix This code snippet demonstrates how to get the suffix from an ICSSCounterStyleRule object in C#. It utilizes the Suffix property to retrieve the suffix value. No external dependencies are required beyond the Aspose.SVG library. ```csharp public string Suffix { get; } ``` -------------------------------- ### SVGPathOptimizationOptions Constructor Source: https://reference.aspose.com/svg/net/aspose.svg.toolkit.optimizers/svgpathoptimizationoptions/svgpathoptimizationoptions Initializes a new instance of the SVGPathOptimizationOptions class. ```APIDOC ## SVGPathOptimizationOptions constructor ### Description Initializes a new instance of the `SVGPathOptimizationOptions` class. ### Method ```csharp public SVGPathOptimizationOptions() ``` ### See Also * class SVGPathOptimizationOptions * namespace Aspose.Svg.Toolkit.Optimizers * assembly Aspose.SVG ``` -------------------------------- ### Set and Get ICSS2Properties.Pitch Property in C# Source: https://reference.aspose.com/svg/net/aspose.svg.dom.css/icss2properties/pitch This C# code snippet demonstrates how to get and set the `Pitch` property of the `ICSS2Properties` interface. This property is used to define the pitch of a speech synthesizer. It is part of the `Aspose.Svg.Dom.Css` namespace. ```csharp public string Pitch { get; set; } ``` -------------------------------- ### XpsDevice Methods Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.xps/xpsdevice Enumerates the methods available in the XpsDevice class for rendering XPS documents. ```APIDOC ## Methods | Name | Description | | --------------------- | ----------- | | `AddRect(_RectangleF_)` | | | `BeginDocument(_Document_)` | | | `BeginElement(_Element, RectangleF_)` | | | `BeginPage(_SizeF_)` | | | `Clip(_FillRule_)` | | | `ClosePath()` | | | `CubicBezierTo(_PointF, PointF, PointF_)` | | | `Dispose()` | | | `DrawImage(_byte[],WebImageFormat, RectangleF_)` | | | `EndDocument()` | | | `EndElement(_Element_)` | | | `EndPage()` | | | `Fill(_FillRule_)` | | | `FillText(_string, PointF_)` | | | `Flush()` | | | `LineTo(_PointF_)` | | | `MoveTo(_PointF_)` | | | `RestoreGraphicContext()` | | | `SaveGraphicContext()` | | | `Stroke()` | | | `StrokeAndFill(_FillRule_)` | | | `StrokeText(_string, PointF_)` | | ``` -------------------------------- ### Initialize ImageDevice with Options and Stream (C#) Source: https://reference.aspose.com/svg/net/aspose.svg.rendering.image/imagedevice/imagedevice Initializes a new instance of the ImageDevice class with rendering options and an output Stream. This provides flexibility for rendering SVGs to various stream destinations with custom settings. It requires an ImageRenderingOptions object and a Stream. ```csharp public ImageDevice(ImageRenderingOptions options, Stream stream) ``` -------------------------------- ### Get and Set PaddingBottom Property - Aspose.SVG C# Source: https://reference.aspose.com/svg/net/aspose.svg.dom.css/icss2properties/paddingbottom This C# code snippet demonstrates how to get and set the padding-bottom property using the ICSS2Properties.PaddingBottom property in Aspose.SVG for .NET. It directly reflects the CSS2 definition of padding-bottom. ```csharp public string PaddingBottom { get; set; } ```