Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / IO / Packaging / IndexingContentUnit.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EdmSchemaAttribute.cs
- MaskDescriptors.cs
- HttpDictionary.cs
- CodeMemberEvent.cs
- Utils.cs
- MenuItem.cs
- XmlProcessingInstruction.cs
- DataTablePropertyDescriptor.cs
- PingOptions.cs
- ToolStripItemGlyph.cs
- TimerExtension.cs
- MultiPropertyDescriptorGridEntry.cs
- PlainXmlSerializer.cs
- OleDbWrapper.cs
- PagedDataSource.cs
- SessionStateUtil.cs
- StoragePropertyMapping.cs
- DescriptionAttribute.cs
- BindingNavigatorDesigner.cs
- Geometry3D.cs
- OutputCache.cs
- sqlnorm.cs
- BinaryParser.cs
- MtomMessageEncodingBindingElement.cs
- StylusDevice.cs
- EventProviderClassic.cs
- querybuilder.cs
- TimelineClockCollection.cs
- XsltContext.cs
- XmlAttributeOverrides.cs
- SerializationEventsCache.cs
- AsymmetricSignatureFormatter.cs
- FormConverter.cs
- PointKeyFrameCollection.cs
- FontUnit.cs
- HandledEventArgs.cs
- BaseParagraph.cs
- AssemblyAttributesGoHere.cs
- DefaultValidator.cs
- RelationshipEndCollection.cs
- NetworkAddressChange.cs
- ECDiffieHellmanCng.cs
- SystemIcmpV4Statistics.cs
- AssertFilter.cs
- MimeXmlReflector.cs
- DateTimeOffset.cs
- InvalidCastException.cs
- IdentityVerifier.cs
- IIS7WorkerRequest.cs
- Win32Native.cs
- compensatingcollection.cs
- BuildResultCache.cs
- UIElement.cs
- DbConnectionPoolIdentity.cs
- XmlRootAttribute.cs
- TextRangeEditTables.cs
- CodeAccessPermission.cs
- EmptyQuery.cs
- ClusterRegistryConfigurationProvider.cs
- XmlSchemaParticle.cs
- ComponentRenameEvent.cs
- RewritingSimplifier.cs
- DataGridCommandEventArgs.cs
- precedingsibling.cs
- SecurityUtils.cs
- PeerContact.cs
- ServiceModelConfigurationElementCollection.cs
- UIElementHelper.cs
- EmptyCollection.cs
- AutoResizedEvent.cs
- DataSourceCache.cs
- XmlElement.cs
- PageAsyncTask.cs
- Panel.cs
- figurelengthconverter.cs
- LightweightCodeGenerator.cs
- DynamicMethod.cs
- IFlowDocumentViewer.cs
- GridItemProviderWrapper.cs
- IDispatchConstantAttribute.cs
- WebPartMinimizeVerb.cs
- WbmpConverter.cs
- MarginCollapsingState.cs
- RootBuilder.cs
- DoubleIndependentAnimationStorage.cs
- DataKey.cs
- Rights.cs
- RootNamespaceAttribute.cs
- XmlAnyElementAttribute.cs
- IdentityManager.cs
- SHA256Managed.cs
- EventRouteFactory.cs
- WpfPayload.cs
- EntityWithChangeTrackerStrategy.cs
- safesecurityhelperavalon.cs
- ReadOnlyHierarchicalDataSourceView.cs
- CheckPair.cs
- TemplateContent.cs
- OuterGlowBitmapEffect.cs
- PathFigureCollection.cs