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
- TrackingMemoryStreamFactory.cs
- MissingMethodException.cs
- ProcessManager.cs
- WorkflowQueueInfo.cs
- QilXmlReader.cs
- QuaternionRotation3D.cs
- ResourceReferenceKeyNotFoundException.cs
- peersecurityelement.cs
- ProfileProvider.cs
- X509Certificate.cs
- PaperSize.cs
- AnnotationElement.cs
- UniqueID.cs
- StyleModeStack.cs
- ContentType.cs
- DataGridViewCellStateChangedEventArgs.cs
- SendMailErrorEventArgs.cs
- TableCell.cs
- DbConnectionPool.cs
- RefType.cs
- EmbeddedObject.cs
- ResourceSet.cs
- WebBrowserUriTypeConverter.cs
- TableItemProviderWrapper.cs
- ErrorRuntimeConfig.cs
- SecurityElement.cs
- Missing.cs
- AstTree.cs
- DesignerLoader.cs
- InputQueue.cs
- AssemblyHash.cs
- ManagementQuery.cs
- AsymmetricSignatureDeformatter.cs
- ToolStripItemDataObject.cs
- ClientSideQueueItem.cs
- FtpWebResponse.cs
- DodSequenceMerge.cs
- ExpressionHelper.cs
- StylusButton.cs
- WpfMemberInvoker.cs
- XmlSchemaObjectCollection.cs
- CompilerParameters.cs
- EdmType.cs
- LinkLabelLinkClickedEvent.cs
- SearchExpression.cs
- BitmapSizeOptions.cs
- CreateUserErrorEventArgs.cs
- xml.cs
- QuerySelectOp.cs
- Helper.cs
- SizeF.cs
- PolyBezierSegment.cs
- QilVisitor.cs
- ActionMessageFilter.cs
- DriveInfo.cs
- WebServiceEndpoint.cs
- MSHTMLHost.cs
- ReaderWriterLock.cs
- XmlSchemaType.cs
- TreeNodeCollection.cs
- RangeBaseAutomationPeer.cs
- AspCompat.cs
- SessionIDManager.cs
- HttpWebResponse.cs
- DesignerLoader.cs
- OrderedParallelQuery.cs
- DataGridAddNewRow.cs
- ToolStripRenderer.cs
- MissingManifestResourceException.cs
- PropertyEmitterBase.cs
- SystemTcpStatistics.cs
- ItemsControl.cs
- StatusBar.cs
- DataObjectFieldAttribute.cs
- FlowDocument.cs
- DataRecordInternal.cs
- PinnedBufferMemoryStream.cs
- RuntimeConfig.cs
- PreviewPrintController.cs
- LongAverageAggregationOperator.cs
- PageCodeDomTreeGenerator.cs
- PageParser.cs
- ImageUrlEditor.cs
- FileFormatException.cs
- DataGridViewDataConnection.cs
- UrlAuthFailureHandler.cs
- RecommendedAsConfigurableAttribute.cs
- TypedAsyncResult.cs
- querybuilder.cs
- ToolStripArrowRenderEventArgs.cs
- BoundingRectTracker.cs
- PasswordRecovery.cs
- PrimitiveDataContract.cs
- Geometry.cs
- DockProviderWrapper.cs
- XmlSchemaObjectCollection.cs
- AssociatedControlConverter.cs
- ResourcePool.cs
- ListView.cs
- x509utils.cs