43 references to FigureUnitType
PresentationFramework (43)
src\Framework\System\Windows\Documents\Figure.cs (2)
213
new FigureLength(1.0,
FigureUnitType
.Auto),
234
new FigureLength(1.0,
FigureUnitType
.Auto),
src\Framework\System\Windows\FigureLength.cs (20)
79
: this(pixels,
FigureUnitType
.Pixel)
101
public FigureLength(double value,
FigureUnitType
type)
118
if ( type !=
FigureUnitType
.Auto
119
&& type !=
FigureUnitType
.Pixel
120
&& type !=
FigureUnitType
.Column
121
&& type !=
FigureUnitType
.Content
122
&& type !=
FigureUnitType
.Page )
126
if(value > 1.0 && (type ==
FigureUnitType
.Content || type ==
FigureUnitType
.Page))
130
if (value > maxColumns && type ==
FigureUnitType
.Column)
134
if (value > maxPixel && type ==
FigureUnitType
.Pixel)
139
_unitValue = (type ==
FigureUnitType
.Auto) ? 0.0 : value;
220
public bool IsAbsolute { get { return (_unitType ==
FigureUnitType
.Pixel); } }
226
public bool IsAuto { get { return (_unitType ==
FigureUnitType
.Auto); } }
231
public bool IsColumn { get { return (_unitType ==
FigureUnitType
.Column); } }
236
public bool IsContent { get { return (_unitType ==
FigureUnitType
.Content); } }
241
public bool IsPage { get { return (_unitType ==
FigureUnitType
.Page); } }
246
public double Value { get { return ((_unitType ==
FigureUnitType
.Auto) ? 1.0 : _unitValue); } }
251
public
FigureUnitType
FigureUnitType { get { return (_unitType); } }
271
private
FigureUnitType
_unitType; // unit type storage
src\Framework\System\Windows\FigureLengthConverter.cs (4)
175
ConstructorInfo ci = typeof(FigureLength).GetConstructor(new Type[] { typeof(double), typeof(
FigureUnitType
) });
203
case
FigureUnitType
.Auto:
206
case
FigureUnitType
.Pixel:
234
FigureUnitType
unit;
src\Framework\System\Windows\Markup\XamlFigureLengthSerializer.cs (17)
80
FigureUnitType
figureUnitType;
95
&& figureUnitType ==
FigureUnitType
.Pixel )
155
FigureUnitType
unitType;
161
unitType =
FigureUnitType
.Pixel;
166
unitType = (
FigureUnitType
)(unitAndFlags & 0x1F);
196
out
FigureUnitType
unit)
201
unit =
FigureUnitType
.Pixel;
252
if (strLen == strLenUnit && unit !=
FigureUnitType
.Pixel)
260
Debug.Assert( unit ==
FigureUnitType
.Pixel
274
internal FigureUnitTypeStringConvert(string name,
FigureUnitType
unitType)
281
internal
FigureUnitType
UnitType;
287
new FigureUnitTypeStringConvert("auto",
FigureUnitType
.Auto),
288
new FigureUnitTypeStringConvert("px",
FigureUnitType
.Pixel),
289
new FigureUnitTypeStringConvert("column",
FigureUnitType
.Column),
290
new FigureUnitTypeStringConvert("columns",
FigureUnitType
.Column),
291
new FigureUnitTypeStringConvert("content",
FigureUnitType
.Content),
292
new FigureUnitTypeStringConvert("page",
FigureUnitType
.Page)