76 references to Length
PresentationCore (72)
MS\Internal\Classification.cs (3)
275
Invariant.Assert(unicodeString.CharacterBuffer != null && unicodeString.
Length
> 0);
280
if ( unicodeString.
Length
>= 2
375
int limit = unicodeString.
Length
;
MS\Internal\FontFace\PhysicalFontFamily.cs (10)
145
int smallestInvalid = charString.
Length
;
273
if (advance >= unicodeString.
Length
)
288
for (; advance < unicodeString.
Length
; advance += sizeofChar)
292
new CharacterBufferRange(unicodeString, advance, unicodeString.
Length
- advance),
331
Debug.Assert(advance <= unicodeString.
Length
);
334
if (advance < unicodeString.
Length
)
337
Debug.Assert(advance + sizeofChar <= unicodeString.
Length
);
339
for (nextValid = advance + sizeofChar; nextValid < unicodeString.
Length
; nextValid += sizeofChar)
343
new CharacterBufferRange(unicodeString, nextValid, unicodeString.
Length
- nextValid),
454
cchAdvance = unicodeString.
Length
;
MS\Internal\Shaping\CompositeFontFamily.cs (5)
237
Invariant.Assert(unicodeString.CharacterBuffer != null && unicodeString.
Length
> 0);
300
if (cchAdvance >= unicodeString.
Length
)
315
new CharacterBufferRange(unicodeString, cchAdvance, unicodeString.
Length
- cchAdvance),
326
for (cchAdvance += sizeofChar; cchAdvance < unicodeString.
Length
; cchAdvance += sizeofChar)
329
new CharacterBufferRange(unicodeString, cchAdvance, unicodeString.
Length
- cchAdvance),
MS\Internal\Shaping\TypefaceMap.cs (25)
158
Debug.Assert(ichItem == unicodeString.
Length
);
167
while(ich < unicodeString.
Length
)
175
int cch = unicodeString.
Length
- ich;
321
while (ich < unicodeString.
Length
)
327
new CharacterBufferRange(unicodeString, ich, unicodeString.
Length
- ich),
338
for (; ich + cchSpan < unicodeString.
Length
; cchSpan += sizeofChar)
342
new CharacterBufferRange(unicodeString, ich + cchSpan, unicodeString.
Length
- ich - cchSpan),
383
while(ich < unicodeString.
Length
)
387
int cch = Math.Min(unicodeString.
Length
- ich, typefaceSpanRider.Length);
403
new CharacterBufferRange(unicodeString, ich + c, unicodeString.
Length
- ich - c),
528
while (ich < unicodeString.
Length
&& !terminated)
532
int cchMap = unicodeString.
Length
- ich;
546
while ( (i < unicodeString.
Length
)
574
Debug.Assert(cchMap <= unicodeString.
Length
- ich);
782
while (ich < unicodeString.
Length
)
788
unicodeString.
Length
- ich
811
Debug.Assert(cchNextValid > 0 && cchNextValid <= unicodeString.
Length
- ich);
839
Debug.Assert(recursionDepth > 0 || advance == unicodeString.
Length
);
925
if (nextValid < mapString.
Length
)
947
nextValid = mapString.
Length
;
964
nextValid = mapString.
Length
;
996
int advance = unicodeString.
Length
;
1010
nextValid = unicodeString.
Length
;
1027
int cch = unicodeString.
Length
;
1044
firstValidLength = unicodeString.
Length
;
MS\Internal\TextFormatting\Bidi.cs (1)
489
int i = charString.
Length
- 1;
MS\Internal\TextFormatting\LineServicesRun.cs (1)
485
get { return _charBufferRange.
Length
; }
MS\Internal\TextFormatting\SimpleTextLine.cs (3)
1485
if (charString.
Length
> 1 && charString[1] == TextStore.CharLineFeed)
1492
else if (charString.
Length
== 1)
1504
if (newBufferRange.
Length
> 0 && newBufferRange[0] == TextStore.CharLineFeed)
MS\Internal\TextFormatting\TextProperties.cs (1)
295
get { return _charBufferRange.
Length
; }
MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
92
return _characterBufferRange.
Length
;
MS\Internal\TextFormatting\TextStore.cs (2)
1206
int limit = charRange.OffsetToFirstChar + charRange.
Length
;
1209
int first = limit - Math.Min(charRange.
Length
, limitCp - firstCp);
System\Windows\Media\FormattedText.cs (1)
1877
charString.
Length
,
System\Windows\Media\GlyphTypeface.cs (11)
1383
Debug.Assert(charBufferRange.
Length
> 0);
1387
ushort[] nominalGlyphs = new ushort[charBufferRange.
Length
];
1393
for (int i = 0; i < charBufferRange.
Length
; i++)
1413
new PartialList<char>(charBufferRange.CharacterBuffer, charBufferRange.OffsetToFirstChar, charBufferRange.
Length
),
1460
if (characters.
Length
* sizeof(uint) < GlyphRun.MaxStackAlloc)
1464
uint *pCodepoints = stackalloc uint[characters.
Length
];
1465
for (int i = 0; i < characters.
Length
; i++)
1469
GetGlyphMetricsAndIndicesOptimized(pCodepoints, characters.
Length
, emSize, pixelsPerDip, glyphIndices, glyphMetrics, textFormattingMode, isSideways);
1474
uint[] codepoints = new uint[characters.
Length
];
1475
for (int i = 0; i < characters.
Length
; i++)
1483
GetGlyphMetricsAndIndicesOptimized(pCodepoints, characters.
Length
, emSize, pixelsPerDip, glyphIndices, glyphMetrics, textFormattingMode, isSideways);
System\Windows\Media\Typeface.cs (8)
399
ushort[] glyphIndices = BufferCache.GetUShorts(charBufferRange.
Length
);
400
MS.Internal.Text.TextInterface.GlyphMetrics[] glyphMetrics = ignoreWidths ? null : BufferCache.GetGlyphMetrics(charBufferRange.
Length
);
446
i < charBufferRange.
Length
464
i < charBufferRange.
Length
625
MS.Internal.Text.TextInterface.GlyphMetrics[] glyphMetrics = BufferCache.GetGlyphMetrics(charBufferRange.
Length
);
634
nominalWidths = new int[charBufferRange.
Length
];
640
for (int i = 0; i < charBufferRange.
Length
; i++)
649
for (int i = 0; i < charBufferRange.
Length
; i++)
PresentationFramework (4)
MS\Internal\Documents\TextBoxLine.cs (1)
125
precedingText.
Length
, new CultureSpecificCharacterBufferRange(culture, precedingText));
MS\Internal\PtsHost\Line.cs (1)
208
nonTextLength + precedingText.
Length
,
MS\Internal\PtsHost\OptimalTextSource.cs (1)
160
nonTextLength + precedingText.
Length
,
MS\Internal\Text\ComplexLine.cs (1)
108
nonTextLength + precedingText.
Length
,