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