76 references to Length
PresentationCore (72)
Core\CSharp\MS\Internal\Classification.cs (3)
300
Invariant.Assert(unicodeString.CharacterBuffer != null && unicodeString.
Length
> 0);
305
if ( unicodeString.
Length
>= 2
430
int limit = unicodeString.
Length
;
Core\CSharp\MS\Internal\FontFace\PhysicalFontFamily.cs (10)
180
int smallestInvalid = charString.
Length
;
313
if (advance >= unicodeString.
Length
)
327
for (; advance < unicodeString.
Length
; advance += sizeofChar)
331
new CharacterBufferRange(unicodeString, advance, unicodeString.
Length
- advance),
366
Debug.Assert(advance <= unicodeString.
Length
);
369
if (advance < unicodeString.
Length
)
372
Debug.Assert(advance + sizeofChar <= unicodeString.
Length
);
374
for (nextValid = advance + sizeofChar; nextValid < unicodeString.
Length
; nextValid += sizeofChar)
378
new CharacterBufferRange(unicodeString, nextValid, unicodeString.
Length
- nextValid),
499
cchAdvance = unicodeString.
Length
;
Core\CSharp\MS\Internal\Shaping\CompositeFontFamily.cs (5)
255
Invariant.Assert(unicodeString.CharacterBuffer != null && unicodeString.
Length
> 0);
318
if (cchAdvance >= unicodeString.
Length
)
333
new CharacterBufferRange(unicodeString, cchAdvance, unicodeString.
Length
- cchAdvance),
344
for (cchAdvance += sizeofChar; cchAdvance < unicodeString.
Length
; cchAdvance += sizeofChar)
347
new CharacterBufferRange(unicodeString, cchAdvance, unicodeString.
Length
- cchAdvance),
Core\CSharp\MS\Internal\Shaping\TypefaceMap.cs (25)
175
Debug.Assert(ichItem == unicodeString.
Length
);
184
while(ich < unicodeString.
Length
)
192
int cch = unicodeString.
Length
- ich;
338
while (ich < unicodeString.
Length
)
344
new CharacterBufferRange(unicodeString, ich, unicodeString.
Length
- ich),
355
for (; ich + cchSpan < unicodeString.
Length
; cchSpan += sizeofChar)
359
new CharacterBufferRange(unicodeString, ich + cchSpan, unicodeString.
Length
- ich - cchSpan),
401
while(ich < unicodeString.
Length
)
405
int cch = Math.Min(unicodeString.
Length
- ich, typefaceSpanRider.Length);
421
new CharacterBufferRange(unicodeString, ich + c, unicodeString.
Length
- ich - c),
546
while (ich < unicodeString.
Length
&& !terminated)
550
int cchMap = unicodeString.
Length
- ich;
564
while ( (i < unicodeString.
Length
)
592
Debug.Assert(cchMap <= unicodeString.
Length
- ich);
800
while (ich < unicodeString.
Length
)
806
unicodeString.
Length
- ich
829
Debug.Assert(cchNextValid > 0 && cchNextValid <= unicodeString.
Length
- ich);
857
Debug.Assert(recursionDepth > 0 || advance == unicodeString.
Length
);
943
if (nextValid < mapString.
Length
)
965
nextValid = mapString.
Length
;
982
nextValid = mapString.
Length
;
1014
int advance = unicodeString.
Length
;
1028
nextValid = unicodeString.
Length
;
1045
int cch = unicodeString.
Length
;
1062
firstValidLength = unicodeString.
Length
;
Core\CSharp\MS\Internal\TextFormatting\Bidi.cs (1)
509
int i = charString.
Length
- 1;
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (1)
515
get { return _charBufferRange.
Length
; }
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (3)
1515
if (charString.
Length
> 1 && charString[1] == TextStore.CharLineFeed)
1522
else if (charString.
Length
== 1)
1534
if (newBufferRange.
Length
> 0 && newBufferRange[0] == TextStore.CharLineFeed)
Core\CSharp\MS\Internal\TextFormatting\TextProperties.cs (1)
304
get { return _charBufferRange.
Length
; }
Core\CSharp\MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
104
return _characterBufferRange.
Length
;
Core\CSharp\MS\Internal\TextFormatting\TextStore.cs (2)
1233
int limit = charRange.OffsetToFirstChar + charRange.
Length
;
1236
int first = limit - Math.Min(charRange.
Length
, limitCp - firstCp);
Core\CSharp\System\Windows\Media\FormattedText.cs (1)
1931
charString.
Length
,
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (11)
1741
Debug.Assert(charBufferRange.
Length
> 0);
1745
ushort[] nominalGlyphs = new ushort[charBufferRange.
Length
];
1751
for (int i = 0; i < charBufferRange.
Length
; i++)
1771
new PartialList<char>(charBufferRange.CharacterBuffer, charBufferRange.OffsetToFirstChar, charBufferRange.
Length
),
1819
if (characters.
Length
* sizeof(uint) < GlyphRun.MaxStackAlloc)
1823
uint *pCodepoints = stackalloc uint[characters.
Length
];
1824
for (int i = 0; i < characters.
Length
; i++)
1828
GetGlyphMetricsAndIndicesOptimized(pCodepoints, characters.
Length
, emSize, pixelsPerDip, glyphIndices, glyphMetrics, textFormattingMode, isSideways);
1833
uint[] codepoints = new uint[characters.
Length
];
1834
for (int i = 0; i < characters.
Length
; i++)
1842
GetGlyphMetricsAndIndicesOptimized(pCodepoints, characters.
Length
, emSize, pixelsPerDip, glyphIndices, glyphMetrics, textFormattingMode, isSideways);
Core\CSharp\System\Windows\Media\Typeface.cs (8)
415
ushort[] glyphIndices = BufferCache.GetUShorts(charBufferRange.
Length
);
416
MS.Internal.Text.TextInterface.GlyphMetrics[] glyphMetrics = ignoreWidths ? null : BufferCache.GetGlyphMetrics(charBufferRange.
Length
);
462
i < charBufferRange.
Length
480
i < charBufferRange.
Length
641
MS.Internal.Text.TextInterface.GlyphMetrics[] glyphMetrics = BufferCache.GetGlyphMetrics(charBufferRange.
Length
);
650
nominalWidths = new int[charBufferRange.
Length
];
656
for (int i = 0; i < charBufferRange.
Length
; i++)
665
for (int i = 0; i < charBufferRange.
Length
; i++)
PresentationFramework (4)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (1)
135
precedingText.
Length
, new CultureSpecificCharacterBufferRange(culture, precedingText));
src\Framework\MS\Internal\PtsHost\Line.cs (1)
229
nonTextLength + precedingText.
Length
,
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
180
nonTextLength + precedingText.
Length
,
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
117
nonTextLength + precedingText.
Length
,