Class PrinterOptions
Configuration options for printers.
Inherited Members
Namespace: Morpheo.Sdk
Assembly: Morpheo.Sdk.dll
Syntax
public class PrinterOptions
Properties
| Edit this page View SourceExclusions
Gets the list of printer name patterns (Regex) to ignore.
Declaration
public List<string> Exclusions { get; }
Property Value
| Type | Description |
|---|---|
| List<string> |
Groups
Gets the dictionary mapping group names to lists of printer patterns.
Declaration
public Dictionary<string, List<string>> Groups { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, List<string>> |
Methods
| Edit this page View SourceDefineGroup(string, string)
Defines a printer group (e.g., "KITCHEN") and associates printers matching the pattern.
Declaration
public PrinterOptions DefineGroup(string groupName, string pattern)
Parameters
| Type | Name | Description |
|---|---|---|
| string | groupName | The name of the group. |
| string | pattern | The regex pattern to match printer names. |
Returns
| Type | Description |
|---|---|
| PrinterOptions | The current PrinterOptions instance. |
Exclude(string)
Excludes printers whose names match the specified pattern (e.g., "Microsoft.*", "Fax").
Declaration
public PrinterOptions Exclude(string pattern)
Parameters
| Type | Name | Description |
|---|---|---|
| string | pattern | The regex pattern to match printer names. |
Returns
| Type | Description |
|---|---|
| PrinterOptions | The current PrinterOptions instance. |