27 references to IsEnumValid
System.Drawing (27)
commonui\System\Drawing\Advanced\GraphicsPath.cs (1)
288
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)FillMode.Alternate, (int)FillMode.Winding))
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (3)
99
if (!ClientUtils.
IsEnumValid
(linearGradientMode, unchecked((int)linearGradientMode), (int)LinearGradientMode.Horizontal, (int)LinearGradientMode.BackwardDiagonal)){
138
if (!ClientUtils.
IsEnumValid
(linearGradientMode, unchecked((int)linearGradientMode), (int)LinearGradientMode.Horizontal, (int)LinearGradientMode.BackwardDiagonal))
735
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)WrapMode.Tile, (int)WrapMode.Clamp))
commonui\System\Drawing\Advanced\PathGradientBrush.cs (3)
58
if (!ClientUtils.
IsEnumValid
(wrapMode, unchecked((int)wrapMode), (int)WrapMode.Tile, (int)WrapMode.Clamp))
118
if (!ClientUtils.
IsEnumValid
(wrapMode, unchecked((int)wrapMode), (int)WrapMode.Tile, (int)WrapMode.Clamp))
865
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)WrapMode.Tile, (int)WrapMode.Clamp))
commonui\System\Drawing\Advanced\StringFormat.cs (3)
283
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)StringAlignment.Near, (int)StringAlignment.Far))
344
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)HotkeyPrefix.None, (int)HotkeyPrefix.Hide))
413
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)StringTrimming.None, (int)StringTrimming.EllipsisPath))
commonui\System\Drawing\Advanced\TextureBrush.cs (4)
77
if (!ClientUtils.
IsEnumValid
(wrapMode, unchecked((int)wrapMode), (int)WrapMode.Tile, (int)WrapMode.Clamp)){
114
if (!ClientUtils.
IsEnumValid
(wrapMode, unchecked((int)wrapMode), (int)WrapMode.Tile, (int)WrapMode.Clamp))
156
if (!ClientUtils.
IsEnumValid
(wrapMode, unchecked((int)wrapMode), (int)WrapMode.Tile, (int)WrapMode.Clamp))
395
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)WrapMode.Tile, (int)WrapMode.Clamp))
commonui\System\Drawing\Color.cs (1)
1594
if( !ClientUtils.
IsEnumValid
( color, unchecked((int) color), (int) KnownColor.ActiveBorder, (int) KnownColor.MenuHighlight ) ) {
commonui\System\Drawing\Graphics.cs (7)
491
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)CompositingMode.SourceOver, (int)CompositingMode.SourceCopy)){
546
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), unchecked((int)CompositingQuality.Invalid), unchecked((int)CompositingQuality.AssumeLinear)))
582
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)TextRenderingHint.SystemDefault, unchecked((int)TextRenderingHint.ClearTypeGridFit)))
638
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), unchecked((int)SmoothingMode.Invalid), unchecked((int)SmoothingMode.AntiAlias)))
669
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), unchecked((int)PixelOffsetMode.Invalid), unchecked((int)PixelOffsetMode.Half)))
716
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), unchecked((int)InterpolationMode.Invalid), unchecked((int)InterpolationMode.HighQualityBicubic)))
782
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)GraphicsUnit.World, (int)GraphicsUnit.Millimeter))
commonui\System\Drawing\Pen.cs (3)
444
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)LineJoin.Miter, (int)LineJoin.MiterClipped))
580
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)PenAlignment.Center, (int)PenAlignment.Right))
911
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), (int)DashStyle.Solid, (int)DashStyle.Custom))
commonui\System\Drawing\Printing\PrinterResolution.cs (1)
59
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), unchecked((int)PrinterResolutionKind.High), unchecked((int)PrinterResolutionKind.Custom)))
commonui\System\Drawing\Printing\PrinterSettings.cs (1)
179
if (!ClientUtils.
IsEnumValid
(value, unchecked((int)value), unchecked((int)Duplex.Default), unchecked((int)Duplex.Horizontal)))