Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / IO / Packaging / IndexingContentUnit.cs / 1305600 / IndexingContentUnit.cs
//---------------------------------------------------------------------------- // // File: IndexingContentUnit.cs // // Description: // Object returned by the NextContentUnit method of XamlFilter. // An IndexingContentUnit contains a chunk and its contents. // // History: // 01/08/2004 - johnlarc Created // 08/26/2004: JohnLarc: Removed access to indexing filters from managed code. // // Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using MS.Internal.Interop; // for CHUNK_BREAKTYPE namespace MS.Internal.IO.Packaging { ///A descriptor for a chunk, as returned by XamlFilter.NextContentUnit. internal class IndexingContentUnit : ManagedChunk { ///Build a contents chunk, passing the contents string and specifying whether it comes from a Glyphs element. ///The value of the chunk's contents property. ///An arbitrary Uint32 to identify each chunk returned by IFilter.GetChunk. ///The opening break for the chunk. ///A description of the property represented by the chunk. ///The locale ID for the chunk. internal IndexingContentUnit( string contents, uint chunkID, CHUNK_BREAKTYPE breakType, ManagedFullPropSpec attribute, uint lcid) : base(chunkID, breakType, attribute, lcid, CHUNKSTATE.CHUNK_TEXT) { _contents = contents; } ////// A utility to be used when one wants to reuse /// one object to hold different values in succession. /// internal void InitIndexingContentUnit( string contents, uint chunkID, CHUNK_BREAKTYPE breakType, ManagedFullPropSpec attribute, uint lcid) { _contents = contents; ID = chunkID; BreakType = breakType; Attribute = attribute; Locale = lcid; } ///The chunk's contents. internal string Text { get { return _contents; } } private string _contents; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AnimationTimeline.cs
- ProxyGenerationError.cs
- IChannel.cs
- ReadContentAsBinaryHelper.cs
- InheritanceRules.cs
- Accessible.cs
- ContainerActivationHelper.cs
- PropertyTabChangedEvent.cs
- MultiAsyncResult.cs
- ReceiveCompletedEventArgs.cs
- TemplateManager.cs
- AssemblyAttributes.cs
- PrintPageEvent.cs
- ReversePositionQuery.cs
- SqlDataSourceConfigureFilterForm.cs
- XmlQueryCardinality.cs
- DiscoveryVersion.cs
- ConsoleKeyInfo.cs
- InspectionWorker.cs
- DataRow.cs
- Calendar.cs
- AnimationClockResource.cs
- TdsParser.cs
- PropertyToken.cs
- DropSource.cs
- StylusLogic.cs
- DataGridRowClipboardEventArgs.cs
- DCSafeHandle.cs
- HebrewNumber.cs
- Psha1DerivedKeyGenerator.cs
- _BufferOffsetSize.cs
- ChannelReliableSession.cs
- MemberDescriptor.cs
- BaseProcessor.cs
- EFTableProvider.cs
- XpsS0ValidatingLoader.cs
- ExpandSegment.cs
- DbConvert.cs
- Matrix.cs
- XmlBufferedByteStreamReader.cs
- ValueTypeFixupInfo.cs
- ReflectionUtil.cs
- DataMisalignedException.cs
- JavaScriptString.cs
- WinInetCache.cs
- InfiniteTimeSpanConverter.cs
- InterleavedZipPartStream.cs
- MenuItemBindingCollection.cs
- WebControlAdapter.cs
- RequestCachePolicyConverter.cs
- BeginEvent.cs
- DetailsViewCommandEventArgs.cs
- FileVersionInfo.cs
- TabControlAutomationPeer.cs
- Decorator.cs
- COM2PropertyPageUITypeConverter.cs
- TogglePatternIdentifiers.cs
- UriTemplateTrieLocation.cs
- DeleteStoreRequest.cs
- DomainLiteralReader.cs
- ArgIterator.cs
- TrustSection.cs
- UnsafeNetInfoNativeMethods.cs
- TemplateNodeContextMenu.cs
- EditingCoordinator.cs
- OwnerDrawPropertyBag.cs
- OpenFileDialog.cs
- PtsHost.cs
- SinglePhaseEnlistment.cs
- EventMappingSettingsCollection.cs
- StorageScalarPropertyMapping.cs
- FloatUtil.cs
- ServicePointManagerElement.cs
- SchemaSetCompiler.cs
- CodeAttachEventStatement.cs
- HtmlInputSubmit.cs
- SelectionManager.cs
- PropertyValueUIItem.cs
- AlgoModule.cs
- ScriptReference.cs
- DateTimeOffsetAdapter.cs
- UdpTransportSettings.cs
- PartBasedPackageProperties.cs
- SubpageParagraph.cs
- StaticFileHandler.cs
- BitmapVisualManager.cs
- DebuggerService.cs
- Assembly.cs
- BuildProvidersCompiler.cs
- TypeLibraryHelper.cs
- ExternalException.cs
- ProjectionQueryOptionExpression.cs
- EntityStoreSchemaGenerator.cs
- ListItemsCollectionEditor.cs
- TextMarkerSource.cs
- DbParameterCollection.cs
- LinqExpressionNormalizer.cs
- XmlUtil.cs
- StringValidatorAttribute.cs
- Int64Storage.cs