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
- OperandQuery.cs
- ConfigXmlText.cs
- ResourceExpressionBuilder.cs
- CodeIdentifiers.cs
- WebPartRestoreVerb.cs
- CqlParser.cs
- DataGridViewLinkColumn.cs
- CallbackException.cs
- ToolStripItemClickedEventArgs.cs
- SimpleRecyclingCache.cs
- TextureBrush.cs
- MSG.cs
- SafeHandles.cs
- DataGridViewTextBoxCell.cs
- ConfigurationPermission.cs
- ThemeDictionaryExtension.cs
- TraceContext.cs
- WindowsFont.cs
- Parser.cs
- Exceptions.cs
- MatrixConverter.cs
- ParagraphVisual.cs
- GeneralTransform3DCollection.cs
- XamlParser.cs
- RadioButtonFlatAdapter.cs
- DataTemplateSelector.cs
- DocumentViewerHelper.cs
- Message.cs
- ProgressChangedEventArgs.cs
- unsafeIndexingFilterStream.cs
- FontDifferentiator.cs
- BaseDataList.cs
- MimeTypePropertyAttribute.cs
- LocalizableAttribute.cs
- HitTestDrawingContextWalker.cs
- BitmapEffectDrawingContextWalker.cs
- BrowserDefinitionCollection.cs
- X509CertificateValidator.cs
- VirtualizedCellInfoCollection.cs
- DataGridViewCheckBoxColumn.cs
- WebMessageEncodingBindingElement.cs
- Module.cs
- EventToken.cs
- DeferredBinaryDeserializerExtension.cs
- DispatchChannelSink.cs
- CoreSwitches.cs
- CodeFieldReferenceExpression.cs
- ParentQuery.cs
- printdlgexmarshaler.cs
- CombinedTcpChannel.cs
- MetabaseServerConfig.cs
- EditorZone.cs
- _NativeSSPI.cs
- SmiEventSink_DeferedProcessing.cs
- MenuTracker.cs
- DeferredSelectedIndexReference.cs
- PlatformCulture.cs
- SqlConnectionHelper.cs
- DiscoveryUtility.cs
- AffineTransform3D.cs
- ProjectionPruner.cs
- ActivityInfo.cs
- SqlParameterizer.cs
- ResourceSet.cs
- ISessionStateStore.cs
- ButtonBaseAutomationPeer.cs
- WindowsUpDown.cs
- VirtualizedItemProviderWrapper.cs
- ContentPresenter.cs
- SqlDataSourceConnectionPanel.cs
- QueueException.cs
- MarkupCompilePass2.cs
- FixedDocumentPaginator.cs
- ObjectViewEntityCollectionData.cs
- SafeLibraryHandle.cs
- ConfigurationSectionGroup.cs
- DataGridViewColumnCollection.cs
- GestureRecognizer.cs
- StatusBarItemAutomationPeer.cs
- WinCategoryAttribute.cs
- PassportAuthenticationEventArgs.cs
- References.cs
- ChangeNode.cs
- PersonalizableTypeEntry.cs
- CalloutQueueItem.cs
- DocumentPage.cs
- TreeViewImageKeyConverter.cs
- NativeWindow.cs
- OleDbPermission.cs
- WindowProviderWrapper.cs
- XmlCharacterData.cs
- _IPv4Address.cs
- CoTaskMemHandle.cs
- PagesChangedEventArgs.cs
- AutomationEvent.cs
- BulletedListEventArgs.cs
- RSAOAEPKeyExchangeFormatter.cs
- QuaternionRotation3D.cs
- ThumbButtonInfo.cs
- MetadataStore.cs