Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / MS / Internal / IO / Packaging / IndexingContentUnit.cs / 1 / 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. //---------------------------------------------------------------------------- // // 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
- TextStore.cs
- EditorPartCollection.cs
- EntityContainerEmitter.cs
- EntityDataSourceEntityTypeFilterItem.cs
- AttributeAction.cs
- HttpRequestWrapper.cs
- TabItemWrapperAutomationPeer.cs
- SettingsPropertyValue.cs
- CodeTypeDeclaration.cs
- IIS7UserPrincipal.cs
- GridViewDeletedEventArgs.cs
- RoutedEventValueSerializer.cs
- XmlQueryOutput.cs
- EdmTypeAttribute.cs
- XmlLinkedNode.cs
- ClientTargetCollection.cs
- ValueTable.cs
- WebControlAdapter.cs
- StyleHelper.cs
- Compiler.cs
- SqlUtil.cs
- BatchStream.cs
- WindowsToolbarAsMenu.cs
- X509ChainElement.cs
- SrgsElementFactory.cs
- NumberSubstitution.cs
- SafePointer.cs
- PseudoWebRequest.cs
- DataAccessor.cs
- RtfNavigator.cs
- ParentQuery.cs
- OleDbSchemaGuid.cs
- EncryptedKey.cs
- Activation.cs
- TextContainer.cs
- CodeComment.cs
- SerialReceived.cs
- AddressingProperty.cs
- ResourceKey.cs
- DoWhileDesigner.xaml.cs
- GrammarBuilder.cs
- WebPartMenuStyle.cs
- XmlSchemaComplexType.cs
- Assembly.cs
- DataGridViewSortCompareEventArgs.cs
- ShapeTypeface.cs
- DocumentReferenceCollection.cs
- TextTreeRootNode.cs
- SqlDataSourceView.cs
- NumericExpr.cs
- KernelTypeValidation.cs
- Context.cs
- XhtmlBasicPhoneCallAdapter.cs
- ScriptControlDescriptor.cs
- SqlWebEventProvider.cs
- ListChangedEventArgs.cs
- TextEndOfSegment.cs
- ToolBarTray.cs
- DoubleAnimationUsingKeyFrames.cs
- ComponentEvent.cs
- CreateUserWizardStep.cs
- DeviceSpecificDesigner.cs
- WCFBuildProvider.cs
- CultureTable.cs
- Qualifier.cs
- KoreanCalendar.cs
- DataGridViewCellMouseEventArgs.cs
- DataContext.cs
- XmlException.cs
- SqlConnectionHelper.cs
- ComUdtElementCollection.cs
- CriticalExceptions.cs
- ConstraintCollection.cs
- PersonalizationProviderHelper.cs
- CharacterString.cs
- RemoteDebugger.cs
- WebPartZoneAutoFormat.cs
- SamlAuthorityBinding.cs
- _SslState.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- _NetworkingPerfCounters.cs
- SqlCrossApplyToCrossJoin.cs
- webeventbuffer.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- DBConnectionString.cs
- TypefaceMetricsCache.cs
- UIElementParaClient.cs
- VirtualPathProvider.cs
- ManipulationStartingEventArgs.cs
- sqlstateclientmanager.cs
- HttpCacheParams.cs
- Thumb.cs
- RtfToXamlLexer.cs
- DateBoldEvent.cs
- SiteIdentityPermission.cs
- TransactedReceiveScope.cs
- WebPartVerb.cs
- WindowCollection.cs
- TableFieldsEditor.cs
- SqlXmlStorage.cs