43 references to FigureUnitType
PresentationFramework (43)
System\Windows\Documents\Figure.cs (2)
213
new FigureLength(1.0,
FigureUnitType
.Auto),
234
new FigureLength(1.0,
FigureUnitType
.Auto),
System\Windows\FigureLength.cs (20)
76
: this(pixels,
FigureUnitType
.Pixel)
98
public FigureLength(double value,
FigureUnitType
type)
115
if ( type !=
FigureUnitType
.Auto
116
&& type !=
FigureUnitType
.Pixel
117
&& type !=
FigureUnitType
.Column
118
&& type !=
FigureUnitType
.Content
119
&& type !=
FigureUnitType
.Page )
123
if (type is
FigureUnitType
.Content or
FigureUnitType
.Page)
128
if (type ==
FigureUnitType
.Column)
133
if (type ==
FigureUnitType
.Pixel)
138
_unitValue = (type ==
FigureUnitType
.Auto) ? 0.0 : value;
219
public bool IsAbsolute { get { return (_unitType ==
FigureUnitType
.Pixel); } }
225
public bool IsAuto { get { return (_unitType ==
FigureUnitType
.Auto); } }
230
public bool IsColumn { get { return (_unitType ==
FigureUnitType
.Column); } }
235
public bool IsContent { get { return (_unitType ==
FigureUnitType
.Content); } }
240
public bool IsPage { get { return (_unitType ==
FigureUnitType
.Page); } }
245
public double Value { get { return ((_unitType ==
FigureUnitType
.Auto) ? 1.0 : _unitValue); } }
250
public
FigureUnitType
FigureUnitType { get { return (_unitType); } }
270
private
FigureUnitType
_unitType; // unit type storage
System\Windows\FigureLengthConverter.cs (4)
164
ConstructorInfo ci = typeof(FigureLength).GetConstructor(new Type[] { typeof(double), typeof(
FigureUnitType
) });
192
case
FigureUnitType
.Auto:
195
case
FigureUnitType
.Pixel:
223
FigureUnitType
unit;
System\Windows\Markup\XamlFigureLengthSerializer.cs (17)
75
FigureUnitType
figureUnitType;
90
&& figureUnitType ==
FigureUnitType
.Pixel )
146
FigureUnitType
unitType;
152
unitType =
FigureUnitType
.Pixel;
157
unitType = (
FigureUnitType
)(unitAndFlags & 0x1F);
187
out
FigureUnitType
unit)
192
unit =
FigureUnitType
.Pixel;
239
if (valueSpan.Length == strLenUnit && unit !=
FigureUnitType
.Pixel)
247
Debug.Assert( unit ==
FigureUnitType
.Pixel
261
internal FigureUnitTypeStringConvert(string name,
FigureUnitType
unitType)
268
internal
FigureUnitType
UnitType;
274
new FigureUnitTypeStringConvert("auto",
FigureUnitType
.Auto),
275
new FigureUnitTypeStringConvert("px",
FigureUnitType
.Pixel),
276
new FigureUnitTypeStringConvert("column",
FigureUnitType
.Column),
277
new FigureUnitTypeStringConvert("columns",
FigureUnitType
.Column),
278
new FigureUnitTypeStringConvert("content",
FigureUnitType
.Content),
279
new FigureUnitTypeStringConvert("page",
FigureUnitType
.Page)