43 references to FigureUnitType
PresentationFramework (43)
System\Windows\Documents\Figure.cs (2)
211new FigureLength(1.0, FigureUnitType.Auto), 232new FigureLength(1.0, FigureUnitType.Auto),
System\Windows\FigureLength.cs (20)
75: this(pixels, FigureUnitType.Pixel) 97public FigureLength(double value, FigureUnitType type) 114if ( type != FigureUnitType.Auto 115&& type != FigureUnitType.Pixel 116&& type != FigureUnitType.Column 117&& type != FigureUnitType.Content 118&& type != FigureUnitType.Page ) 122if (type is FigureUnitType.Content or FigureUnitType.Page) 127if (type == FigureUnitType.Column) 132if (type == FigureUnitType.Pixel) 137_unitValue = (type == FigureUnitType.Auto) ? 0.0 : value; 218public bool IsAbsolute { get { return (_unitType == FigureUnitType.Pixel); } } 224public bool IsAuto { get { return (_unitType == FigureUnitType.Auto); } } 229public bool IsColumn { get { return (_unitType == FigureUnitType.Column); } } 234public bool IsContent { get { return (_unitType == FigureUnitType.Content); } } 239public bool IsPage { get { return (_unitType == FigureUnitType.Page); } } 244public double Value { get { return ((_unitType == FigureUnitType.Auto) ? 1.0 : _unitValue); } } 249public FigureUnitType FigureUnitType { get { return (_unitType); } } 269private FigureUnitType _unitType; // unit type storage
System\Windows\FigureLengthConverter.cs (4)
158ConstructorInfo ci = typeof(FigureLength).GetConstructor(new Type[] { typeof(double), typeof(FigureUnitType) }); 186case FigureUnitType.Auto: 189case FigureUnitType.Pixel: 217FigureUnitType unit;
System\Windows\Markup\XamlFigureLengthSerializer.cs (17)
66FigureUnitType figureUnitType; 81&& figureUnitType == FigureUnitType.Pixel ) 137FigureUnitType unitType; 143unitType = FigureUnitType.Pixel; 148unitType = (FigureUnitType)(unitAndFlags & 0x1F); 178out FigureUnitType unit) 183unit = FigureUnitType.Pixel; 230if (valueSpan.Length == strLenUnit && unit != FigureUnitType.Pixel) 238Debug.Assert( unit == FigureUnitType.Pixel 252internal FigureUnitTypeStringConvert(string name, FigureUnitType unitType) 259internal FigureUnitType UnitType; 265new FigureUnitTypeStringConvert("auto", FigureUnitType.Auto), 266new FigureUnitTypeStringConvert("px", FigureUnitType.Pixel), 267new FigureUnitTypeStringConvert("column", FigureUnitType.Column), 268new FigureUnitTypeStringConvert("columns", FigureUnitType.Column), 269new FigureUnitTypeStringConvert("content", FigureUnitType.Content), 270new FigureUnitTypeStringConvert("page", FigureUnitType.Page)