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