Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ColumnHeaderConverter.cs
- XmlDictionaryReader.cs
- SelectionWordBreaker.cs
- Debug.cs
- FunctionQuery.cs
- MouseButton.cs
- CollectionType.cs
- ZoneLinkButton.cs
- CheckableControlBaseAdapter.cs
- XmlExceptionHelper.cs
- BamlLocalizableResourceKey.cs
- XmlSchemaGroup.cs
- MemoryFailPoint.cs
- Mutex.cs
- GridEntry.cs
- DataGridCellsPresenter.cs
- DataSourceControl.cs
- RegexWriter.cs
- CreateUserErrorEventArgs.cs
- Trace.cs
- D3DImage.cs
- OrderedDictionaryStateHelper.cs
- CurrentTimeZone.cs
- ProcessHost.cs
- SystemInformation.cs
- DocumentXPathNavigator.cs
- DataServiceRequest.cs
- PageClientProxyGenerator.cs
- WhileDesigner.cs
- CommandCollectionEditor.cs
- UpWmlMobileTextWriter.cs
- FontUnit.cs
- MenuItem.cs
- KeyboardNavigation.cs
- MouseWheelEventArgs.cs
- GB18030Encoding.cs
- BamlBinaryReader.cs
- UInt16.cs
- NegotiateStream.cs
- ExpressionBindingsDialog.cs
- KeyMatchBuilder.cs
- SchemaElementLookUpTableEnumerator.cs
- WebBrowsableAttribute.cs
- Rectangle.cs
- DbDeleteCommandTree.cs
- StrokeCollectionConverter.cs
- NotFiniteNumberException.cs
- ProfileParameter.cs
- BindingObserver.cs
- WebPartMenu.cs
- StreamAsIStream.cs
- ListenerBinder.cs
- HyperlinkAutomationPeer.cs
- ExpressionReplacer.cs
- SettingsAttributeDictionary.cs
- ThemeDirectoryCompiler.cs
- LineServicesCallbacks.cs
- EmbeddedMailObject.cs
- BaseProcessor.cs
- SecurityToken.cs
- ApplicationContext.cs
- SectionInput.cs
- WindowsButton.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- ExtensibleClassFactory.cs
- DynamicResourceExtension.cs
- BuilderPropertyEntry.cs
- InlineCollection.cs
- AuthenticationModulesSection.cs
- Vector3D.cs
- HttpHandlerAction.cs
- RegistrationContext.cs
- DataSourceCache.cs
- EditorAttributeInfo.cs
- Types.cs
- LambdaCompiler.Logical.cs
- DataGridCommandEventArgs.cs
- TransformProviderWrapper.cs
- GPStream.cs
- AlignmentXValidation.cs
- XmlSignatureProperties.cs
- ObjectQuery.cs
- CardSpaceShim.cs
- ColorTransformHelper.cs
- ObjectDataSourceView.cs
- SqlRecordBuffer.cs
- Timer.cs
- ConfigurationElementCollection.cs
- XmlTextEncoder.cs
- InstrumentationTracker.cs
- TableLayout.cs
- CommandHelper.cs
- MonitoringDescriptionAttribute.cs
- XmlDataImplementation.cs
- TimelineCollection.cs
- ServiceBehaviorAttribute.cs
- XmlSiteMapProvider.cs
- TextEditorSelection.cs
- LogExtentCollection.cs
- ExtendedPropertyDescriptor.cs