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