Class Factory
[Guid("06152247-6f50-465a-9245-118bfd3b6007")]
public class Factory : ComObject
- Inheritance
-
Factory
- Derived
Constructors
Factory()
Default Constructor for a Factory.
public Factory()
Factory(FactoryType)
Default Constructor for a Factory.
public Factory(FactoryType factoryType)
Parameters
factoryType
FactoryType
Factory(FactoryType, DebugLevel)
Default Constructor for a Factory.
public Factory(FactoryType factoryType, DebugLevel debugLevel)
Parameters
factoryType
FactoryTypedebugLevel
DebugLevel
Factory(nint)
public Factory(nint nativePtr)
Parameters
nativePtr
nint
Properties
DesktopDpi
Retrieves the current desktop dots per inch (DPI). To refresh this value, call {{ReloadSystemMetrics}}.
public Size2F DesktopDpi { get; }
Property Value
- Size2F
Remarks
Use this method to obtain the system DPI when setting physical pixel values, such as when you specify the size of a window.
Methods
ReloadSystemMetrics()
Forces the factory to refresh any system defaults that it might have changed since factory creation.
public void ReloadSystemMetrics()
Remarks
You should call this method before calling the GetDesktopDpi method, to ensure that the system DPI is current.
Operators
explicit operator Factory(nint)
public static explicit operator Factory(nint nativePtr)
Parameters
nativePtr
nint