Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 - [....] Created // 08/26/2004: [....]: 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
- GroupDescription.cs
- QuaternionValueSerializer.cs
- DataFormats.cs
- HiddenFieldPageStatePersister.cs
- Point4D.cs
- ContextMenuStrip.cs
- TextDecorationUnitValidation.cs
- BindableTemplateBuilder.cs
- TextPenaltyModule.cs
- Scene3D.cs
- QueryStringParameter.cs
- DataListItemEventArgs.cs
- CanonicalFontFamilyReference.cs
- XmlILStorageConverter.cs
- MachineKeyConverter.cs
- LightweightEntityWrapper.cs
- SymmetricKeyWrap.cs
- TransformedBitmap.cs
- AxisAngleRotation3D.cs
- Schema.cs
- CodeMemberProperty.cs
- TextCompositionManager.cs
- XmlUrlResolver.cs
- Annotation.cs
- ScriptMethodAttribute.cs
- WebPartUtil.cs
- IfAction.cs
- DependencyProperty.cs
- InstanceKey.cs
- UxThemeWrapper.cs
- _AcceptOverlappedAsyncResult.cs
- FormViewPagerRow.cs
- SqlDataSource.cs
- MediaElementAutomationPeer.cs
- XmlSchemaCompilationSettings.cs
- ErrorInfoXmlDocument.cs
- EditorZoneBase.cs
- Stylus.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- UInt16.cs
- TextFormattingConverter.cs
- DateTimeFormat.cs
- ValidationUtility.cs
- XmlSchemaParticle.cs
- EventArgs.cs
- SourceSwitch.cs
- ProcessModelInfo.cs
- SAPICategories.cs
- Matrix3DValueSerializer.cs
- linebase.cs
- Timer.cs
- UnknownWrapper.cs
- HttpVersion.cs
- ColorConverter.cs
- SafeNativeMethods.cs
- SafeViewOfFileHandle.cs
- SafeReversePInvokeHandle.cs
- UshortList2.cs
- TreeNodeSelectionProcessor.cs
- SqlProvider.cs
- SHA512Managed.cs
- Triplet.cs
- Debug.cs
- ToolStripLocationCancelEventArgs.cs
- HwndHost.cs
- ContractSearchPattern.cs
- PersonalizationDictionary.cs
- ExceptionTrace.cs
- CodeEntryPointMethod.cs
- CommandHelpers.cs
- RemotingConfiguration.cs
- ProcessThreadCollection.cs
- CreateUserErrorEventArgs.cs
- BuilderElements.cs
- KeyMatchBuilder.cs
- TypeConverterHelper.cs
- DataMemberConverter.cs
- designeractionbehavior.cs
- WebPartDisplayModeCollection.cs
- SystemResourceKey.cs
- SocketAddress.cs
- BeginEvent.cs
- DebugControllerThread.cs
- MultiDataTrigger.cs
- CannotUnloadAppDomainException.cs
- ButtonBase.cs
- IconHelper.cs
- DataControlFieldCollection.cs
- TraceFilter.cs
- ContextMenuStrip.cs
- CoTaskMemUnicodeSafeHandle.cs
- ErrorWebPart.cs
- ObjectDataSourceFilteringEventArgs.cs
- PageThemeBuildProvider.cs
- ChangeTracker.cs
- PropertyItem.cs
- EntityDataSourceColumn.cs
- QueryOutputWriter.cs
- PrivilegeNotHeldException.cs
- CapabilitiesUse.cs