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
- DesignerAutoFormatCollection.cs
- CommonObjectSecurity.cs
- CorrelationKey.cs
- CapabilitiesAssignment.cs
- SelectedPathEditor.cs
- SecurityHelper.cs
- Config.cs
- ButtonField.cs
- odbcmetadatacolumnnames.cs
- Section.cs
- SmtpReplyReader.cs
- Int32EqualityComparer.cs
- TableParaClient.cs
- LayoutTable.cs
- DropDownList.cs
- TableRowGroup.cs
- InterleavedZipPartStream.cs
- MergePropertyDescriptor.cs
- dtdvalidator.cs
- HttpCookiesSection.cs
- SortAction.cs
- TypeForwardedToAttribute.cs
- BufferedGraphicsContext.cs
- MenuItemStyle.cs
- BoundsDrawingContextWalker.cs
- FontUnit.cs
- BaseAddressElementCollection.cs
- RawMouseInputReport.cs
- HttpListenerException.cs
- BrowserCapabilitiesFactoryBase.cs
- DocumentReferenceCollection.cs
- QilIterator.cs
- ThreadExceptionEvent.cs
- XmlWriterSettings.cs
- IsolatedStorageFile.cs
- FolderBrowserDialog.cs
- WmfPlaceableFileHeader.cs
- CodeSnippetExpression.cs
- HttpClientCertificate.cs
- RightNameExpirationInfoPair.cs
- XPathDocumentBuilder.cs
- CqlWriter.cs
- MarkupCompiler.cs
- GeneralTransform2DTo3DTo2D.cs
- EntityAdapter.cs
- EntityCommandExecutionException.cs
- FixedSOMPageElement.cs
- BitmapSourceSafeMILHandle.cs
- SqlTypeConverter.cs
- Convert.cs
- DrawingCollection.cs
- SignalGate.cs
- UrlRoutingHandler.cs
- SecurityTokenAuthenticator.cs
- SettingsAttributeDictionary.cs
- ServiceModelActivity.cs
- ResourceContainer.cs
- WebPartEventArgs.cs
- RawKeyboardInputReport.cs
- StrokeCollectionConverter.cs
- ScaleTransform3D.cs
- FlowDocumentFormatter.cs
- XmlSchemaAny.cs
- EntityCommandDefinition.cs
- DefaultValueConverter.cs
- SubMenuStyleCollection.cs
- LogSwitch.cs
- Reference.cs
- JavaScriptString.cs
- Helper.cs
- PrintDialog.cs
- CompilerParameters.cs
- BuildProvidersCompiler.cs
- ContentFilePart.cs
- StylusPointPropertyInfo.cs
- XmlReflectionMember.cs
- SmtpSection.cs
- NativeMethods.cs
- ConstructorNeedsTagAttribute.cs
- Win32.cs
- Matrix.cs
- WebPartHelpVerb.cs
- ScriptResourceInfo.cs
- ExpressionBindingsDialog.cs
- LocalizableResourceBuilder.cs
- ImageListStreamer.cs
- HandlerBase.cs
- XmlSchemaComplexContent.cs
- ExportOptions.cs
- HighlightComponent.cs
- QilSortKey.cs
- BamlLocalizationDictionary.cs
- NotifyInputEventArgs.cs
- KnownColorTable.cs
- StylesEditorDialog.cs
- ImmutablePropertyDescriptorGridEntry.cs
- XmlSchemaFacet.cs
- ServiceEndpointElementCollection.cs
- BatchWriter.cs
- GeneralTransform3DTo2DTo3D.cs