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
- ClientWindowsAuthenticationMembershipProvider.cs
- SerTrace.cs
- InvalidWMPVersionException.cs
- UnknownBitmapDecoder.cs
- Helpers.cs
- UseAttributeSetsAction.cs
- DateTimeUtil.cs
- SafePEFileHandle.cs
- EditorOptionAttribute.cs
- MonthCalendar.cs
- TypeLibConverter.cs
- DataGridViewCellFormattingEventArgs.cs
- EditorPartCollection.cs
- FileLoadException.cs
- XmlStringTable.cs
- ColorTransform.cs
- BinaryObjectReader.cs
- OptionalMessageQuery.cs
- SmiEventSink_DeferedProcessing.cs
- ToolStripProgressBar.cs
- RowUpdatedEventArgs.cs
- Container.cs
- DataGridViewColumnTypePicker.cs
- ContentHostHelper.cs
- CqlQuery.cs
- DataPagerFieldItem.cs
- DataView.cs
- StorageMappingFragment.cs
- EventLogHandle.cs
- InheritablePropertyChangeInfo.cs
- TrustManagerMoreInformation.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- Attribute.cs
- DynamicDataManager.cs
- DataGrid.cs
- ProjectedSlot.cs
- XslTransform.cs
- Normalization.cs
- ContentElementCollection.cs
- EventSinkActivityDesigner.cs
- X509CertificateStore.cs
- mda.cs
- ComboBoxAutomationPeer.cs
- RelatedImageListAttribute.cs
- NamedPipeProcessProtocolHandler.cs
- ErrorHandler.cs
- DocumentViewerHelper.cs
- CellParaClient.cs
- XmlSchemaInfo.cs
- StyleHelper.cs
- FileEnumerator.cs
- ColumnReorderedEventArgs.cs
- DataProviderNameConverter.cs
- TreePrinter.cs
- AssemblyAttributes.cs
- RuntimeResourceSet.cs
- StringSource.cs
- DetailsViewInsertEventArgs.cs
- GlyphCollection.cs
- XslTransform.cs
- ThousandthOfEmRealPoints.cs
- SecurityPermission.cs
- TableLayout.cs
- ConnectionPoolManager.cs
- BuiltInExpr.cs
- _RequestCacheProtocol.cs
- DtrList.cs
- TextTreeRootNode.cs
- DataBoundControl.cs
- CustomLineCap.cs
- ArrayExtension.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- TlsnegoTokenAuthenticator.cs
- ExtensionWindowHeader.cs
- DllNotFoundException.cs
- XmlAggregates.cs
- MulticastDelegate.cs
- PathFigure.cs
- DataRowChangeEvent.cs
- RuntimeWrappedException.cs
- ToolBarButtonClickEvent.cs
- InputMethodStateChangeEventArgs.cs
- PropertyCollection.cs
- CodeStatement.cs
- ThousandthOfEmRealDoubles.cs
- SrgsOneOf.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- Knowncolors.cs
- WhereQueryOperator.cs
- Cursors.cs
- LocalFileSettingsProvider.cs
- ProfileSettings.cs
- WebAdminConfigurationHelper.cs
- HtmlAnchor.cs
- RuleInfoComparer.cs
- ConfigXmlAttribute.cs
- SHA256CryptoServiceProvider.cs
- EncryptedPackage.cs
- TextDecorationLocationValidation.cs
- DataRelationPropertyDescriptor.cs