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
- TextAnchor.cs
- _RequestCacheProtocol.cs
- ComplexPropertyEntry.cs
- ObjectList.cs
- SmtpReplyReaderFactory.cs
- PropertyGroupDescription.cs
- HashSetEqualityComparer.cs
- Events.cs
- CapabilitiesSection.cs
- MemoryFailPoint.cs
- DependencySource.cs
- MgmtConfigurationRecord.cs
- BaseCodeDomTreeGenerator.cs
- wgx_exports.cs
- SimpleWorkerRequest.cs
- DataColumnChangeEvent.cs
- CompilerState.cs
- DeviceSpecificChoice.cs
- ListChangedEventArgs.cs
- RestHandlerFactory.cs
- FontNamesConverter.cs
- XmlTypeAttribute.cs
- ViewBase.cs
- Subtree.cs
- SmiSettersStream.cs
- Profiler.cs
- ZipPackagePart.cs
- ParameterExpression.cs
- OleCmdHelper.cs
- DbDataRecord.cs
- UpdateExpressionVisitor.cs
- Metafile.cs
- XmlConverter.cs
- TypeUsage.cs
- BaseDataBoundControl.cs
- ExceptionAggregator.cs
- MiniModule.cs
- SqlDependencyUtils.cs
- WebPartChrome.cs
- HtmlTable.cs
- RelationshipEnd.cs
- BulletedList.cs
- SessionParameter.cs
- TagMapCollection.cs
- ItemType.cs
- StreamResourceInfo.cs
- HttpInputStream.cs
- TraceHandler.cs
- MetadataArtifactLoaderCompositeResource.cs
- ErrorWrapper.cs
- TextBoxRenderer.cs
- DashStyles.cs
- GridItem.cs
- XamlClipboardData.cs
- RuleProcessor.cs
- log.cs
- GridViewSortEventArgs.cs
- ArcSegment.cs
- Error.cs
- JavaScriptObjectDeserializer.cs
- EncryptedHeader.cs
- ValidationErrorCollection.cs
- RecognizerInfo.cs
- EdmSchemaError.cs
- MouseEvent.cs
- Timer.cs
- ToolStripSystemRenderer.cs
- FixedSOMContainer.cs
- SaveFileDialog.cs
- DesignConnectionCollection.cs
- EntitySetDataBindingList.cs
- VScrollBar.cs
- UpdateTracker.cs
- VariantWrapper.cs
- TagMapCollection.cs
- SapiAttributeParser.cs
- ProfileSettings.cs
- RecognizedWordUnit.cs
- ReceiveSecurityHeaderElementManager.cs
- EncryptedHeader.cs
- MetabaseReader.cs
- List.cs
- ConfigsHelper.cs
- WebBrowserProgressChangedEventHandler.cs
- PowerModeChangedEventArgs.cs
- MasterPageBuildProvider.cs
- SqlRemoveConstantOrderBy.cs
- ToolStripPanel.cs
- DrawingServices.cs
- WindowsFormsHostAutomationPeer.cs
- CaseInsensitiveOrdinalStringComparer.cs
- Crc32.cs
- WebScriptServiceHostFactory.cs
- CultureTable.cs
- ValidationEventArgs.cs
- PublisherMembershipCondition.cs
- RuntimeHelpers.cs
- ResXResourceReader.cs
- RegionInfo.cs
- DocumentApplicationDocumentViewer.cs