コード例 #1
0
ファイル: DeviceContext.cs プロジェクト: jaemilton/winforms
        /// <devdoc>
        ///     Sets the dc graphics mode and returns the old value.
        /// </devdoc>


        public DeviceContextGraphicsMode SetGraphicsMode(DeviceContextGraphicsMode newMode)
        {
            return((DeviceContextGraphicsMode)IntUnsafeNativeMethods.SetGraphicsMode(new HandleRef(this, this.Hdc), unchecked ((int)newMode)));
        }
コード例 #2
0
 public DeviceContextGraphicsMode SetGraphicsMode(DeviceContextGraphicsMode newMode)
 {
     return (DeviceContextGraphicsMode) IntUnsafeNativeMethods.SetGraphicsMode(new HandleRef(this, this.Hdc), (int) newMode);
 }