Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Documents / RtfFormatStack.cs / 1 / RtfFormatStack.cs
//---------------------------------------------------------------------------- // // File: RtfFormatStack.cs // // Copyright (C) Microsoft Corporation. All rights reserved. // // Description: Rtf format stack. // //--------------------------------------------------------------------------- using System.Collections; using MS.Internal; // Invariant namespace System.Windows.Documents { ////// RtfFormatStack /// internal class RtfFormatStack : ArrayList { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal RtfFormatStack() : base(20) { } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods internal void Push() { FormatState previousFormatState = Top(); FormatState formatState; formatState = previousFormatState != null ? new FormatState(previousFormatState) : new FormatState(); Add(formatState); } internal void Pop() { Invariant.Assert(Count != 0); if (Count > 0) { RemoveAt(Count - 1); } } internal FormatState Top() { return Count > 0 ? EntryAt(Count - 1) : null; } internal FormatState PrevTop(int fromTop) { int index = Count - 1 - fromTop; if (index < 0 || index >= Count) { return null; } return EntryAt(index); } internal FormatState EntryAt(int index) { return (FormatState)this[index]; } #endregion Internal Methods } } // 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
- InputProcessorProfiles.cs
- ViewLoader.cs
- ConfigurationPropertyAttribute.cs
- BasicCellRelation.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- AdapterUtil.cs
- EnvironmentPermission.cs
- TraceLog.cs
- SharedUtils.cs
- XpsViewerException.cs
- StringKeyFrameCollection.cs
- ScriptControlManager.cs
- TextOnlyOutput.cs
- _NestedMultipleAsyncResult.cs
- ACL.cs
- RegistryExceptionHelper.cs
- ForeignConstraint.cs
- TextRunProperties.cs
- WebPartCancelEventArgs.cs
- HandleRef.cs
- BaseParagraph.cs
- ListBoxItemAutomationPeer.cs
- ProcessModuleCollection.cs
- SubMenuStyleCollection.cs
- XsdBuildProvider.cs
- ReaderWriterLockWrapper.cs
- DefaultParameterValueAttribute.cs
- SqlInternalConnection.cs
- SvcFileManager.cs
- TextMarkerSource.cs
- Gdiplus.cs
- OleDbReferenceCollection.cs
- FullTrustAssembliesSection.cs
- XamlSerializationHelper.cs
- ActivityScheduledRecord.cs
- CompareValidator.cs
- PlanCompilerUtil.cs
- View.cs
- X509InitiatorCertificateClientElement.cs
- ReceiveDesigner.xaml.cs
- _NetRes.cs
- RevocationPoint.cs
- elementinformation.cs
- DurableOperationAttribute.cs
- BaseProcessProtocolHandler.cs
- TreeViewAutomationPeer.cs
- XmlElementCollection.cs
- DataDesignUtil.cs
- SkinBuilder.cs
- WaveHeader.cs
- AudioFormatConverter.cs
- ObjectComplexPropertyMapping.cs
- StylusPointCollection.cs
- ResourceExpression.cs
- WindowsListViewItem.cs
- DataContractSerializer.cs
- SubtreeProcessor.cs
- PropertyGridCommands.cs
- Viewport2DVisual3D.cs
- SupportingTokenProviderSpecification.cs
- RuleInfoComparer.cs
- EntityDataSourceSelectingEventArgs.cs
- IUnknownConstantAttribute.cs
- Tuple.cs
- MultiPropertyDescriptorGridEntry.cs
- CodeLabeledStatement.cs
- SimpleApplicationHost.cs
- HttpPostedFileBase.cs
- PropertyOrder.cs
- XmlSchemaSimpleContent.cs
- SqlBuffer.cs
- IOException.cs
- PersonalizationAdministration.cs
- DesignerObject.cs
- ToolBarButtonClickEvent.cs
- ConvertersCollection.cs
- ImageSource.cs
- FileLoadException.cs
- MaskedTextBoxTextEditorDropDown.cs
- DbParameterHelper.cs
- CodeBinaryOperatorExpression.cs
- HwndHostAutomationPeer.cs
- FastPropertyAccessor.cs
- PropertyStore.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- Assert.cs
- PrimitiveXmlSerializers.cs
- HttpInputStream.cs
- DbDataAdapter.cs
- ResourceManagerWrapper.cs
- ConfigurationStrings.cs
- SR.cs
- Site.cs
- PartialCachingAttribute.cs
- BitmapEncoder.cs
- ResourceReferenceExpression.cs
- DataFormats.cs
- SuppressMessageAttribute.cs
- CompilerInfo.cs
- SqlFacetAttribute.cs