### Get/Set StrokeDashOffset in C# Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmodel/xpspath/strokedashoffset This code snippet demonstrates how to get and set the StrokeDashOffset property for an XpsPath object in C#. This property controls the starting point of a dash pattern in a stroke. ```csharp public float StrokeDashOffset { get; set; } ``` -------------------------------- ### ParameterInit Constructor Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/parameterinit This C# code shows the constructor for the ParameterInit class, used to create a new instance with a specified name and Value. This is fundamental for initializing PrintTicket parameters. ```csharp ParameterInit(string, Value) ``` -------------------------------- ### Initialize Aspose.Page License Source: https://reference.aspose.com/page/net/aspose.page/license/license Initializes a new instance of the License class for Aspose.Page. This is the first step before applying a license file. ```C# License license = new License(); ``` ```Visual Basic Dim license As license = New license ``` -------------------------------- ### Get/Set XpsLinearGradientBrush StartPoint - Aspose.Page .NET Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmodel/xpslineargradientbrush/startpoint This code snippet demonstrates how to get or set the starting point of a linear gradient using the XpsLinearGradientBrush.StartPoint property in Aspose.Page for .NET. This property is crucial for defining the gradient's direction and extent. ```.NET public PointF StartPoint { get; set; } ``` -------------------------------- ### Get or Set Size.Height Property Source: https://reference.aspose.com/page/net/aspose.page.drawing/size/height This C# code snippet demonstrates how to get or set the vertical component (Height) of a Size object in Aspose.Page.Drawing. It is a public property with a get and set accessor. ```csharp public int Height { get; set; } ``` -------------------------------- ### Create PageBlackGenerationProcessingUnderColorAdditionStart Instance Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/pageblackgenerationprocessingundercoloradditionstart/pageblackgenerationprocessingundercoloradditionstart This code snippet demonstrates how to create a new instance of the PageBlackGenerationProcessingUnderColorAdditionStart class by passing an integer value to its constructor. The constructor is part of the Aspose.Page.XPS.XpsMetadata namespace. ```csharp public PageBlackGenerationProcessingUnderColorAdditionStart(int value) ``` -------------------------------- ### Create JobOptimalDestinationColorProfile Instance Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/joboptimaldestinationcolorprofile/joboptimaldestinationcolorprofile This code snippet demonstrates how to create a new instance of the JobOptimalDestinationColorProfile class. It requires a Profile object, the profile data as a string, and the path to the profile. ```csharp public JobOptimalDestinationColorProfile(Profile profile, string profileData, string path) ``` -------------------------------- ### Get AntiqueWhite Color Source: https://reference.aspose.com/page/net/aspose.page.drawing/color/antiquewhite Retrieves a system-defined color, AntiqueWhite, which has an ARGB value of #FFFAEBD7. This property is used to get the color value. ```C# public static Color AntiqueWhite { get; } ``` -------------------------------- ### Instantiate ScaleOffsetAlignment Class Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/pagescaling Demonstrates how to create a new instance of the ScaleOffsetAlignment class using its constructor, which accepts a variable number of ScaleOffsetAlignmentOption objects. ```csharp ScaleOffsetAlignment(params ScaleOffsetAlignmentOption[]) ``` -------------------------------- ### Get XpsMatrix.M22 Property Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmodel/xpsmatrix/m22 This code snippet demonstrates how to get the M22 element from an XpsMatrix object. The M22 element is a float value representing a component of the matrix. ```C# public float M22 { get; } ``` -------------------------------- ### PageBlackGenerationProcessingGrayComponentReplacementStart Constructor Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/pageblackgenerationprocessinggraycomponentreplacementstart/pageblackgenerationprocessinggraycomponentreplacementstart Creates a new instance of the PageBlackGenerationProcessingGrayComponentReplacementStart class. This constructor takes an integer value as a parameter, which is used to initialize the instance. ```C# public PageBlackGenerationProcessingGrayComponentReplacementStart(int value) ``` -------------------------------- ### Get or Set XpsPathSegment IsStroked Property Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmodel/xpspathsegment/isstroked This code snippet demonstrates how to get or set the `IsStroked` property for an `XpsPathSegment`. This property determines if the stroke of the path segment is rendered. ```C# public bool IsStroked { get; set; } ``` -------------------------------- ### Initialize PsDocument with File Path and Save Options Source: https://reference.aspose.com/page/net/aspose.page.eps/psdocument/psdocument Initializes an empty PsDocument with a specified output file path and save options. This allows for the creation of a PostScript document with predefined settings. ```csharp public PsDocument(string outPsFilePath, PsSaveOptions options) ``` -------------------------------- ### Get and Set BatchSize Property in C# Source: https://reference.aspose.com/page/net/aspose.page.xps.presentation.pdf/pdfsaveoptions/batchsize Demonstrates how to get and set the BatchSize property for PdfSaveOptions. This property controls the number of pages processed in batches, affecting memory usage and performance. ```C# public int BatchSize { get; set; } ``` -------------------------------- ### BuildVersionInfo Constructor - Aspose.Page Source: https://reference.aspose.com/page/net/aspose.page/buildversioninfo/buildversioninfo This snippet shows the default constructor for the BuildVersionInfo class in Aspose.Page for .NET. This constructor initializes a new instance of the BuildVersionInfo class. ```csharp public BuildVersionInfo() ``` -------------------------------- ### Get or Set XpsPath Geometry - C# Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmodel/xpspath/data This code snippet demonstrates how to get or set the geometry of an XpsPath using the Data property in Aspose.Page for .NET. It interacts with the XpsPathGeometry class. ```csharp public XpsPathGeometry Data { get; set; } ``` -------------------------------- ### Initialize PsDocument with Stream, Save Options, and Page Initialization Flag Source: https://reference.aspose.com/page/net/aspose.page.eps/psdocument/psdocument Initializes an empty PsDocument using a stream, save options, and a flag for page initialization. Setting the flag to false requires explicit page setup. ```csharp public PsDocument(Stream outPsStream, PsSaveOptions options, bool multipaged) ``` -------------------------------- ### CreateLinearGradientBrush with Start and End Points Source: https://reference.aspose.com/page/net/aspose.page.xps.features.eventbasedmodifications/pageapi/createlineargradientbrush Creates a new linear gradient brush by specifying only the start and end points for the gradient. This overload might use default gradient stops. ```C# public XpsLinearGradientBrush CreateLinearGradientBrush(PointF startPoint, PointF endPoint) ``` -------------------------------- ### ParameterInit Class Definition Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/parameterinit This C# code defines the ParameterInit class, which inherits from PrintTicketElement and implements IPrintTicketItem. It is the base class for all schema-defined parameter initializers in Aspose.Page. ```csharp public class ParameterInit : PrintTicketElement, IPrintTicketItem ``` -------------------------------- ### Set and Get User Password - Aspose.Page Source: https://reference.aspose.com/page/net/aspose.page.xps.presentation.pdf/pdfencryptiondetails/userpassword This code snippet demonstrates how to set and get the UserPassword property for PdfEncryptionDetails. This property is crucial for managing user access permissions within an encrypted PDF document. ```C# public string UserPassword { get; set; } ``` -------------------------------- ### Get or Set PDF Encryption Algorithm Source: https://reference.aspose.com/page/net/aspose.page.xps.presentation.pdf/pdfencryptiondetails/encryptionalgorithm This C# code snippet demonstrates how to get or set the encryption algorithm for a PDF document using the PdfEncryptionDetails class from the Aspose.Page library. It interacts with the EncryptionAlgorithm property. ```csharp public PdfEncryptionAlgorithm EncryptionAlgorithm { get; set; } ``` -------------------------------- ### DocumentCoverFront Constructor Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/documentcoverfront Creates a new instance of the DocumentCoverFront class, accepting an array of CoverFrontOption objects to configure the front cover sheet. ```.NET DocumentCoverFront(params CoverFrontOption[]) ``` -------------------------------- ### Get XmpField Prefix - C# Source: https://reference.aspose.com/page/net/aspose.page.eps.xmp/xmpfield/prefix This code snippet demonstrates how to get the prefix of an XMP field using the XmpField.Prefix property in Aspose.Page for .NET. The property returns a string representing the prefix. ```csharp public string Prefix { get; set; } ``` -------------------------------- ### ParameterInit Constructor - Aspose.Page Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/parameterinit/parameterinit Creates a new instance of the ParameterInit class, accepting a parameter name (string) and a parameter value (Value). This is used for initializing metadata parameters within XPS documents. ```csharp public ParameterInit(string name, Value value) ``` -------------------------------- ### Create JobOutputBin Instance with Items Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/joboutputbin/joboutputbin This C# code snippet demonstrates how to create a new instance of the JobOutputBin class by passing an array of IOutputBinItem objects to its constructor. This is used for initializing the feature with specific items. ```csharp public JobOutputBin(params IOutputBinItem[] items) ``` -------------------------------- ### Get or Set PageSize - Aspose.Page for .NET Source: https://reference.aspose.com/page/net/aspose.page.eps.device/pssaveoptions/pagesize This code snippet demonstrates how to get or set the PageSize property for the PsSaveOptions class. The PageSize property is of type Size and defines the dimensions of the page. ```csharp public Size PageSize { get; set; } ``` -------------------------------- ### Create JobStapleAllDocuments Instance Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/jobstaplealldocuments/jobstaplealldocuments This code snippet demonstrates how to create a new instance of the JobStapleAllDocuments class. It requires an array of StapleOption objects as a parameter, which configures the specific options for the feature. ```csharp public JobStapleAllDocuments(params StapleOption[] options) ``` -------------------------------- ### Get or Set SizeF Height Source: https://reference.aspose.com/page/net/aspose.page.drawing/sizef/height This code snippet demonstrates how to get or set the vertical component (height) of a SizeF structure in Aspose.Page for .NET. The height is typically measured in pixels. ```C# public float Height { get; set; } ``` -------------------------------- ### Get XpsGradientStop Offset - C# Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmodel/xpsgradientstop/offset This code snippet demonstrates how to get the gradient offset from an XpsGradientStop object in C#. The Offset property indicates a point along the gradient progression where a color is specified. ```csharp public float Offset { get; } ``` -------------------------------- ### Create DocumentCoverFrontSource Instance - Aspose.Page for .NET Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/documentcoverfrontsource/documentcoverfrontsource This code snippet demonstrates how to create a new instance of the DocumentCoverFrontSource class using its constructor. The constructor requires a string value to initialize the object. ```csharp Copypublic DocumentCoverFrontSource(string value) ``` -------------------------------- ### Get Value as String - Aspose.Page .NET Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/value/valuestring This snippet demonstrates how to get the value of a property as a string using the ValueString property in Aspose.Page for .NET. It is part of the Value class within the Aspose.Page.XPS.XpsMetadata namespace. ```csharp public string ValueString { get; } ``` -------------------------------- ### StringParameterInit Constructor in C# Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/stringparameterinit/stringparameterinit Creates a new instance of the StringParameterInit class. This constructor takes the parameter name and its corresponding value as input. ```csharp public StringParameterInit(string name, string value) ``` -------------------------------- ### Get and Set Additional Font Folders in C# Source: https://reference.aspose.com/page/net/aspose.page.plugins/psconverteroptions/additionalfontsfolders This C# code snippet demonstrates how to get and set the AdditionalFontsFolders property of the PsConverterOptions class. This property is used to specify additional directories where the converter should look for fonts. ```C# public string[] AdditionalFontsFolders { get; set; } ``` -------------------------------- ### Initialize PsDocument with File Path, Save Options, and Page Initialization Flag Source: https://reference.aspose.com/page/net/aspose.page.eps/psdocument/psdocument Initializes an empty PsDocument with a file path, save options, and a boolean flag to control page initialization. If false, page initialization must be done explicitly. ```csharp public PsDocument(string outPsFilePath, PsSaveOptions options, bool multipaged) ``` -------------------------------- ### Get or Set Size.Width Property (C#) Source: https://reference.aspose.com/page/net/aspose.page.drawing/size/width This C# code snippet demonstrates how to get or set the horizontal component (Width) of a Size object in Aspose.Page.Drawing. The Width property is an integer value, typically representing pixels. ```C# public int Width { get; set; } ``` -------------------------------- ### Initialize UserProperties - With Defaults and AltDefaults Source: https://reference.aspose.com/page/net/aspose.page/userproperties/userproperties Constructs a UserProperties object using both a defaults and an altDefaults dictionary. The properties are searched in the defaults dictionary first, then in the altDefaults dictionary. ```csharp public UserProperties(Dictionary defaults, Dictionary altDefaults) ``` -------------------------------- ### Get and Set XpsBrush Opacity Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmodel/xpsbrush/opacity This code snippet demonstrates how to get and set the uniform transparency of a brush fill using the XpsBrush.Opacity property in Aspose.Page for .NET. The property takes and returns a float value. ```csharp public float Opacity { get; set; } ``` -------------------------------- ### Create PageDeviceColorSpaceProfileURI Instance Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/pagedevicecolorspaceprofileuri/pagedevicecolorspaceprofileuri This code snippet demonstrates how to create a new instance of the PageDeviceColorSpaceProfileURI class. The constructor requires a string argument representing the URI value. ```.NET public PageDeviceColorSpaceProfileURI(string value) ``` -------------------------------- ### Create InputBinOption Instance (.NET) Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/inputbin.inputbinoption/inputbinoption Demonstrates how to create a new instance of the InputBinOption class using its constructor. This involves providing an option name and an array of IInputBinOptionItem objects. ```csharp public InputBinOption(string optionName, params IInputBinOptionItem[] items) ``` -------------------------------- ### Get or Set Permissions - Aspose.Page .NET Source: https://reference.aspose.com/page/net/aspose.page.xps.presentation.pdf/pdfencryptiondetails/permissions This code snippet demonstrates how to get or set the Permissions property of the PdfEncryptionDetails class in Aspose.Page for .NET. This property is used to manage the permissions associated with PDF encryption. ```csharp public int Permissions { get; set; } ``` -------------------------------- ### OutputBinOption Constructor Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/outputbin Creates a new instance of the OutputBinOption class, accepting a variable number of IOutputBinOptionItem objects. ```csharp OutputBinOption(params IOutputBinOptionItem[]) ``` -------------------------------- ### Get or Set GradientBrush Bounds - C# Source: https://reference.aspose.com/page/net/aspose.page.eps/gradientbrush/bounds This code snippet demonstrates how to get or set the bounds for a gradient brush using the GradientBrush.Bounds property in C#. The property returns a RectangleF object representing the bounds. ```csharp public RectangleF Bounds { get; set; } ``` -------------------------------- ### Get XpsVisualBrush.Visual Property Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmodel/xpsvisualbrush/visual This code snippet demonstrates how to get the Visual property of an XpsVisualBrush object. The Visual property returns a Path, Glyphs, or Canvas element used to draw the brush's source content. ```csharp public XpsContentElement Visual { get; } ``` -------------------------------- ### Create JobPrimaryCoverFrontSource Instance (.NET) Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/jobprimarycoverfrontsource/jobprimarycoverfrontsource This code snippet demonstrates how to create a new instance of the JobPrimaryCoverFrontSource class in .NET. The constructor accepts a string value as a parameter. ```.NET public JobPrimaryCoverFrontSource(string value) ``` -------------------------------- ### Get or Set XmpField LocalName Source: https://reference.aspose.com/page/net/aspose.page.eps.xmp/xmpfield/localname This code snippet demonstrates how to get or set the local name for an XMP field using the XmpField.LocalName property in Aspose.Page for .NET. The property returns a string representing the local name. ```.NET public string LocalName { get; set; } ``` -------------------------------- ### Create DocumentPrintTicket with Items Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/documentprintticket/documentprintticket Initializes a new instance of the DocumentPrintTicket class with an arbitrary array of IDocumentPrintTicketItem. These items can include Feature, ParameterInit, or Property instances. ```csharp public DocumentPrintTicket(params IDocumentPrintTicketItem[] items) ``` -------------------------------- ### Create IntegerParameterInit Instance Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/integerparameterinit/integerparameterinit Initializes a new instance of the IntegerParameterInit class with the specified parameter name and integer value. This is useful for setting integer-based metadata parameters in XPS documents. ```csharp public IntegerParameterInit(string name, int value) ``` -------------------------------- ### Get or Set GradientBrush WrapMode - Aspose.Page Source: https://reference.aspose.com/page/net/aspose.page.eps/gradientbrush/wrapmode This code snippet demonstrates how to get or set the wrap mode for a GradientBrush in Aspose.Page for .NET. The WrapMode property controls how the gradient is applied when it extends beyond the bounds of the object. ```csharp public WrapMode WrapMode { get; set; } ``` -------------------------------- ### CreatePathFigure with Start Point and Closure Source: https://reference.aspose.com/page/net/aspose.page.xps.features.eventbasedmodifications/pageapi/createpathfigure Creates a new XPS path figure with a specified starting point and closure property. This method is useful for defining the basic geometry of a path without initially defining its segments. ```C# public XpsPathFigure CreatePathFigure(PointF startPoint, bool isClosed = false) ``` -------------------------------- ### Create JobPageOrder Instance with Options Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/jobpageorder/jobpageorder This code snippet demonstrates how to create a new instance of the JobPageOrder class using its constructor. The constructor accepts an array of JobPageOrderOption objects to configure the feature. ```csharp public JobPageOrder(params JobPageOrderOption[] options) ``` -------------------------------- ### Option Class Constructors - Aspose.Page .NET Source: https://reference.aspose.com/page/net/aspose.page.xps.xpsmetadata/option Demonstrates the various constructors available for the Option class in Aspose.Page for .NET. These constructors allow for creating new instances with different parameter sets, including cloning existing instances. ```csharp Option(params IOptionItem[]) Option(Option) Option(string, params IOptionItem[]) ``` -------------------------------- ### CreateLinearGradientBrush with Start and End Points Source: https://reference.aspose.com/page/net/aspose.page.xps/xpsdocument/createlineargradientbrush Creates a new linear gradient brush using only the start and end points. This overload is suitable for creating a basic linear gradient where default color stops might be applied or managed separately. ```csharp public XpsLinearGradientBrush CreateLinearGradientBrush(PointF startPoint, PointF endPoint) ``` -------------------------------- ### Get or Set InputStream for PS/EPS File - C# Source: https://reference.aspose.com/page/net/aspose.page.eps/psdocument/inputstream This code snippet demonstrates how to get or set the input stream for a PS/EPS file using the InputStream property of the PsDocument class. This is essential for loading and processing PostScript or Encapsulated PostScript files. ```csharp public Stream InputStream { get; set; } ```