76 references to Length
PresentationCore (72)
MS\Internal\Classification.cs (3)
276
Invariant.Assert(unicodeString.CharacterBuffer != null && unicodeString.
Length
> 0);
281
if ( unicodeString.
Length
>= 2
376
int limit = unicodeString.
Length
;
MS\Internal\FontFace\PhysicalFontFamily.cs (10)
146
int smallestInvalid = charString.
Length
;
274
if (advance >= unicodeString.
Length
)
289
for (; advance < unicodeString.
Length
; advance += sizeofChar)
293
new CharacterBufferRange(unicodeString, advance, unicodeString.
Length
- advance),
332
Debug.Assert(advance <= unicodeString.
Length
);
335
if (advance < unicodeString.
Length
)
338
Debug.Assert(advance + sizeofChar <= unicodeString.
Length
);
340
for (nextValid = advance + sizeofChar; nextValid < unicodeString.
Length
; nextValid += sizeofChar)
344
new CharacterBufferRange(unicodeString, nextValid, unicodeString.
Length
- nextValid),
455
cchAdvance = unicodeString.
Length
;
MS\Internal\Shaping\CompositeFontFamily.cs (5)
238
Invariant.Assert(unicodeString.CharacterBuffer != null && unicodeString.
Length
> 0);
301
if (cchAdvance >= unicodeString.
Length
)
316
new CharacterBufferRange(unicodeString, cchAdvance, unicodeString.
Length
- cchAdvance),
327
for (cchAdvance += sizeofChar; cchAdvance < unicodeString.
Length
; cchAdvance += sizeofChar)
330
new CharacterBufferRange(unicodeString, cchAdvance, unicodeString.
Length
- cchAdvance),
MS\Internal\Shaping\TypefaceMap.cs (25)
159
Debug.Assert(ichItem == unicodeString.
Length
);
168
while(ich < unicodeString.
Length
)
176
int cch = unicodeString.
Length
- ich;
322
while (ich < unicodeString.
Length
)
328
new CharacterBufferRange(unicodeString, ich, unicodeString.
Length
- ich),
339
for (; ich + cchSpan < unicodeString.
Length
; cchSpan += sizeofChar)
343
new CharacterBufferRange(unicodeString, ich + cchSpan, unicodeString.
Length
- ich - cchSpan),
384
while(ich < unicodeString.
Length
)
388
int cch = Math.Min(unicodeString.
Length
- ich, typefaceSpanRider.Length);
404
new CharacterBufferRange(unicodeString, ich + c, unicodeString.
Length
- ich - c),
529
while (ich < unicodeString.
Length
&& !terminated)
533
int cchMap = unicodeString.
Length
- ich;
547
while ( (i < unicodeString.
Length
)
575
Debug.Assert(cchMap <= unicodeString.
Length
- ich);
783
while (ich < unicodeString.
Length
)
789
unicodeString.
Length
- ich
812
Debug.Assert(cchNextValid > 0 && cchNextValid <= unicodeString.
Length
- ich);
840
Debug.Assert(recursionDepth > 0 || advance == unicodeString.
Length
);
926
if (nextValid < mapString.
Length
)
948
nextValid = mapString.
Length
;
965
nextValid = mapString.
Length
;
997
int advance = unicodeString.
Length
;
1011
nextValid = unicodeString.
Length
;
1028
int cch = unicodeString.
Length
;
1045
firstValidLength = unicodeString.
Length
;
MS\Internal\TextFormatting\Bidi.cs (1)
490
int i = charString.
Length
- 1;
MS\Internal\TextFormatting\LineServicesRun.cs (1)
486
get { return _charBufferRange.
Length
; }
MS\Internal\TextFormatting\SimpleTextLine.cs (3)
1492
if (charString.
Length
> 1 && charString[1] == TextStore.CharLineFeed)
1499
else if (charString.
Length
== 1)
1511
if (newBufferRange.
Length
> 0 && newBufferRange[0] == TextStore.CharLineFeed)
MS\Internal\TextFormatting\TextProperties.cs (1)
296
get { return _charBufferRange.
Length
; }
MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
93
return _characterBufferRange.
Length
;
MS\Internal\TextFormatting\TextStore.cs (2)
1207
int limit = charRange.OffsetToFirstChar + charRange.
Length
;
1210
int first = limit - Math.Min(charRange.
Length
, limitCp - firstCp);
System\Windows\Media\FormattedText.cs (1)
1898
charString.
Length
,
System\Windows\Media\GlyphTypeface.cs (11)
1384
Debug.Assert(charBufferRange.
Length
> 0);
1388
ushort[] nominalGlyphs = new ushort[charBufferRange.
Length
];
1394
for (int i = 0; i < charBufferRange.
Length
; i++)
1414
new PartialList<char>(charBufferRange.CharacterBuffer, charBufferRange.OffsetToFirstChar, charBufferRange.
Length
),
1461
if (characters.
Length
* sizeof(uint) < GlyphRun.MaxStackAlloc)
1465
uint *pCodepoints = stackalloc uint[characters.
Length
];
1466
for (int i = 0; i < characters.
Length
; i++)
1470
GetGlyphMetricsAndIndicesOptimized(pCodepoints, characters.
Length
, emSize, pixelsPerDip, glyphIndices, glyphMetrics, textFormattingMode, isSideways);
1475
uint[] codepoints = new uint[characters.
Length
];
1476
for (int i = 0; i < characters.
Length
; i++)
1484
GetGlyphMetricsAndIndicesOptimized(pCodepoints, characters.
Length
, emSize, pixelsPerDip, glyphIndices, glyphMetrics, textFormattingMode, isSideways);
System\Windows\Media\Typeface.cs (8)
400
ushort[] glyphIndices = BufferCache.GetUShorts(charBufferRange.
Length
);
401
MS.Internal.Text.TextInterface.GlyphMetrics[] glyphMetrics = ignoreWidths ? null : BufferCache.GetGlyphMetrics(charBufferRange.
Length
);
447
i < charBufferRange.
Length
465
i < charBufferRange.
Length
626
MS.Internal.Text.TextInterface.GlyphMetrics[] glyphMetrics = BufferCache.GetGlyphMetrics(charBufferRange.
Length
);
635
nominalWidths = new int[charBufferRange.
Length
];
641
for (int i = 0; i < charBufferRange.
Length
; i++)
650
for (int i = 0; i < charBufferRange.
Length
; i++)
PresentationFramework (4)
MS\Internal\Documents\TextBoxLine.cs (1)
126
precedingText.
Length
, new CultureSpecificCharacterBufferRange(culture, precedingText));
MS\Internal\PtsHost\Line.cs (1)
220
nonTextLength + precedingText.
Length
,
MS\Internal\PtsHost\OptimalTextSource.cs (1)
169
nonTextLength + precedingText.
Length
,
MS\Internal\Text\ComplexLine.cs (1)
109
nonTextLength + precedingText.
Length
,