DiagramClientView.DpiX Property
Display resolution X in dots per inch. MAY BE STALE if display resolution has changed since last call to UpdateRatios (via W2D/D2W calls). It is likely not to have changed and good enough for most purposes (creation was for bump-scrolling) as it avoids creating another graphics as does GetWorldUnitsPerDeviceUnits.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaration
Public ReadOnly Property DpiX As Single
Get
public float DpiX { get; }
public:
property float DpiX {
float get ();
}
member DpiX : float32
function get DpiX () : float
Property Value
Type: System.Single
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.