Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SafeRegistryKey.cs
- X509ClientCertificateCredentialsElement.cs
- XmlCDATASection.cs
- QueryableFilterUserControl.cs
- AccessibleObject.cs
- SelectionItemProviderWrapper.cs
- Rect.cs
- ShaperBuffers.cs
- BinaryKeyIdentifierClause.cs
- TypeInitializationException.cs
- DoubleAverageAggregationOperator.cs
- MdImport.cs
- loginstatus.cs
- LineUtil.cs
- IPAddress.cs
- IgnoreFlushAndCloseStream.cs
- PropertyKey.cs
- JsonGlobals.cs
- UndoEngine.cs
- InheritanceRules.cs
- SizeAnimationBase.cs
- OracleCommand.cs
- RSAPKCS1SignatureDeformatter.cs
- Boolean.cs
- PathNode.cs
- SimpleType.cs
- WeakKeyDictionary.cs
- Lasso.cs
- TextDpi.cs
- Package.cs
- IItemContainerGenerator.cs
- SchemaEntity.cs
- ColorKeyFrameCollection.cs
- SourceInterpreter.cs
- FixedDocumentPaginator.cs
- BuildProviderUtils.cs
- ImportException.cs
- Rfc2898DeriveBytes.cs
- HwndMouseInputProvider.cs
- CacheDict.cs
- IntPtr.cs
- TypeBuilder.cs
- ResourcePermissionBaseEntry.cs
- XPathCompiler.cs
- WorkflowDesignerColors.cs
- CopyNamespacesAction.cs
- IisTraceListener.cs
- ListViewUpdateEventArgs.cs
- BuildProviderUtils.cs
- ConvertersCollection.cs
- SimpleTypeResolver.cs
- Encoder.cs
- FormsAuthenticationConfiguration.cs
- StatusBarPanel.cs
- OleDbInfoMessageEvent.cs
- ValuePattern.cs
- TextServicesCompartmentContext.cs
- MarkupWriter.cs
- PenContexts.cs
- OleDbParameter.cs
- SelectionChangedEventArgs.cs
- ComplexTypeEmitter.cs
- QilList.cs
- FunctionUpdateCommand.cs
- LinqExpressionNormalizer.cs
- UnsafeCollabNativeMethods.cs
- GlyphRun.cs
- PassportPrincipal.cs
- BeginEvent.cs
- StringSource.cs
- HorizontalAlignConverter.cs
- EntityViewGenerator.cs
- StrongName.cs
- HtmlTextArea.cs
- EnumValAlphaComparer.cs
- PngBitmapDecoder.cs
- MailWebEventProvider.cs
- ReadWriteSpinLock.cs
- KeyGestureConverter.cs
- BasePattern.cs
- ListViewTableCell.cs
- SqlInternalConnection.cs
- EncoderReplacementFallback.cs
- Size.cs
- CodeStatement.cs
- SystemMulticastIPAddressInformation.cs
- HGlobalSafeHandle.cs
- EndOfStreamException.cs
- ConfigurationException.cs
- BitmapEffectGroup.cs
- ObjectListShowCommandsEventArgs.cs
- MergeEnumerator.cs
- NetSectionGroup.cs
- StubHelpers.cs
- InvalidAsynchronousStateException.cs
- TextContainer.cs
- SQLByteStorage.cs
- SystemResourceHost.cs
- DetailsViewDeletedEventArgs.cs
- HelpKeywordAttribute.cs