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