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
- EntityObject.cs
- FixedSOMElement.cs
- HttpCapabilitiesSectionHandler.cs
- ResXResourceWriter.cs
- SqlCacheDependencySection.cs
- PngBitmapDecoder.cs
- NavigatorInvalidBodyAccessException.cs
- DeadCharTextComposition.cs
- ByteStorage.cs
- cache.cs
- DBSqlParserTable.cs
- AppPool.cs
- MsmqTransportElement.cs
- WorkflowDesigner.cs
- DataKeyCollection.cs
- Preprocessor.cs
- BindingExpressionUncommonField.cs
- RadioButtonBaseAdapter.cs
- WorkflowCommandExtensionItem.cs
- RegisteredArrayDeclaration.cs
- DockPattern.cs
- StreamWithDictionary.cs
- ValidationUtility.cs
- CodeObject.cs
- TableColumn.cs
- StringInfo.cs
- RegisteredExpandoAttribute.cs
- RecipientIdentity.cs
- ScriptControl.cs
- IdentityValidationException.cs
- PackageRelationshipCollection.cs
- AssertUtility.cs
- ObfuscateAssemblyAttribute.cs
- NavigationPropertyAccessor.cs
- LocatorPartList.cs
- HandleRef.cs
- UpDownEvent.cs
- MemberMaps.cs
- InplaceBitmapMetadataWriter.cs
- _SafeNetHandles.cs
- filewebrequest.cs
- SByteConverter.cs
- SqlDataSourceQueryEditorForm.cs
- DynamicResourceExtensionConverter.cs
- StringConcat.cs
- BamlTreeUpdater.cs
- exports.cs
- DrawListViewColumnHeaderEventArgs.cs
- ResourceKey.cs
- UInt64Converter.cs
- ExceptionUtil.cs
- SequenceDesigner.cs
- IteratorFilter.cs
- XamlPathDataSerializer.cs
- XmlImplementation.cs
- ParseChildrenAsPropertiesAttribute.cs
- ConfigurationManagerInternal.cs
- XhtmlConformanceSection.cs
- ResourcePool.cs
- HistoryEventArgs.cs
- CertificateElement.cs
- DllHostInitializer.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- InstanceCreationEditor.cs
- Image.cs
- SizeLimitedCache.cs
- AliasGenerator.cs
- RoleManagerModule.cs
- IRCollection.cs
- CheckedListBox.cs
- GridToolTip.cs
- ImportContext.cs
- SQLChars.cs
- WebConfigurationFileMap.cs
- ColorEditor.cs
- XmlHierarchicalEnumerable.cs
- Executor.cs
- TrustSection.cs
- ValuePattern.cs
- ObjectView.cs
- RuntimeCompatibilityAttribute.cs
- DataTemplateKey.cs
- VoiceInfo.cs
- EncodingInfo.cs
- BitmapScalingModeValidation.cs
- DrawToolTipEventArgs.cs
- MailAddress.cs
- OperatingSystem.cs
- AuthenticationException.cs
- TypographyProperties.cs
- HttpClientCertificate.cs
- ReadingWritingEntityEventArgs.cs
- safelinkcollection.cs
- HMACSHA256.cs
- TypeSystem.cs
- StorageFunctionMapping.cs
- DefaultValueMapping.cs
- ConnectionManagementElement.cs
- CanonicalizationDriver.cs
- Win32.cs