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
- OutputCacheModule.cs
- ListViewInsertEventArgs.cs
- PlatformCulture.cs
- HttpListenerContext.cs
- LineBreakRecord.cs
- ToolStripTextBox.cs
- QueryAccessibilityHelpEvent.cs
- CachedFontFamily.cs
- Int32AnimationBase.cs
- QuadraticBezierSegment.cs
- FixedBufferAttribute.cs
- XmlHierarchyData.cs
- CommonRemoteMemoryBlock.cs
- ProfilePropertySettingsCollection.cs
- DocumentsTrace.cs
- DocumentXPathNavigator.cs
- MexHttpsBindingCollectionElement.cs
- ServerIdentity.cs
- CollectionAdapters.cs
- ThousandthOfEmRealDoubles.cs
- ConnectionOrientedTransportChannelListener.cs
- TemplatePropertyEntry.cs
- StylusDownEventArgs.cs
- AssociationType.cs
- PhysicalFontFamily.cs
- GridViewPageEventArgs.cs
- MethodCallConverter.cs
- RectKeyFrameCollection.cs
- CurrentTimeZone.cs
- RequestCache.cs
- StatusBarPanelClickEvent.cs
- BatchParser.cs
- ComboBoxRenderer.cs
- AttachedPropertyMethodSelector.cs
- CompatibleComparer.cs
- XmlSerializerNamespaces.cs
- OleDbParameterCollection.cs
- ReferencedCollectionType.cs
- shaperfactoryquerycachekey.cs
- Model3DCollection.cs
- TypeGeneratedEventArgs.cs
- PatternMatcher.cs
- EventData.cs
- MetadataProperty.cs
- XmlSerializerOperationBehavior.cs
- EDesignUtil.cs
- PerformanceCounterTraceRecord.cs
- PagesSection.cs
- AccessKeyManager.cs
- ImmutableCollection.cs
- Item.cs
- MetadataArtifactLoaderCompositeResource.cs
- GAC.cs
- SystemIPInterfaceProperties.cs
- CalendarDay.cs
- FilteredDataSetHelper.cs
- PopupEventArgs.cs
- LambdaCompiler.Address.cs
- FastEncoder.cs
- Tool.cs
- SiteMapHierarchicalDataSourceView.cs
- ByteAnimationUsingKeyFrames.cs
- Vector3DAnimationBase.cs
- ListBox.cs
- namescope.cs
- MouseCaptureWithinProperty.cs
- VScrollProperties.cs
- UInt64.cs
- HostSecurityManager.cs
- ParamArrayAttribute.cs
- BidOverLoads.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- RightsManagementInformation.cs
- SqlBuilder.cs
- Dictionary.cs
- CurrentChangingEventManager.cs
- RTLAwareMessageBox.cs
- Knowncolors.cs
- BufferModesCollection.cs
- PackWebResponse.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Drawing.cs
- RsaKeyIdentifierClause.cs
- EventManager.cs
- OdbcReferenceCollection.cs
- FixedSOMSemanticBox.cs
- CustomTrackingRecord.cs
- securitycriticaldataformultiplegetandset.cs
- MimeBasePart.cs
- TextEditorParagraphs.cs
- Mapping.cs
- LinqToSqlWrapper.cs
- WindowsFont.cs
- Vector3DAnimationUsingKeyFrames.cs
- NamedElement.cs
- Stylesheet.cs
- DBSqlParser.cs
- MetadataPropertyCollection.cs
- ExpressionVisitor.cs
- DefaultValueConverter.cs