Table of Contents

Class WindowsPrinters

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents the printers found on a Windows machine.

public class WindowsPrinters : BypassSection
Inheritance
WindowsPrinters
Inherited Members

Constructors

WindowsPrinters()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsPrinters class.

public WindowsPrinters()

Properties

Items

Gets or sets the items in the collection.

public WindowsPrinterCollection Items { get; set; }

Property Value

WindowsPrinterCollection

Methods

FindByName(string)

Returns the printer with the specified name, or null if no printer with that name is found in the collection.

public WindowsPrinter FindByName(string name)

Parameters

name string

The printer name.

Returns

WindowsPrinter

The printer with the specified name.

FromXml(string)

Returns a CENTREL.XIA.Configuration.Types.WindowsPrinters class from the specified XML.

public static WindowsPrinters FromXml(string xml)

Parameters

xml string

The XML representation of the object.

Returns

WindowsPrinters

A CENTREL.XIA.Configuration.Types.WindowsPrinters class.

ToString()

Returns the Windows printers as a human readable string - for example "10 Printers" or "{Not Documented}".

public override string ToString()

Returns

string

The Windows printers as a human readable string.