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
- ToolStripContainerActionList.cs
- TreeViewCancelEvent.cs
- SchemaTableColumn.cs
- HtmlButton.cs
- InstalledVoice.cs
- ReferenceCountedObject.cs
- IDictionary.cs
- TreeNodeCollection.cs
- CapacityStreamGeometryContext.cs
- DataGridViewCellValidatingEventArgs.cs
- TextHidden.cs
- XmlKeywords.cs
- XmlSchemaInclude.cs
- Bold.cs
- FontStyleConverter.cs
- Point4D.cs
- XomlSerializationHelpers.cs
- DateTimeFormat.cs
- HttpListenerPrefixCollection.cs
- EndPoint.cs
- ExpressionPrefixAttribute.cs
- Soap11ServerProtocol.cs
- ArrayElementGridEntry.cs
- DataBoundControl.cs
- PersistenceTypeAttribute.cs
- StrongNamePublicKeyBlob.cs
- CredentialCache.cs
- HMACRIPEMD160.cs
- BitmapSource.cs
- XmlTextEncoder.cs
- PropertyReferenceSerializer.cs
- IconHelper.cs
- ProfileSettingsCollection.cs
- WebControl.cs
- InvokeMethod.cs
- ImageAttributes.cs
- StructuredProperty.cs
- EnumBuilder.cs
- _RequestCacheProtocol.cs
- ThreadPoolTaskScheduler.cs
- SocketStream.cs
- DesignTable.cs
- EnumBuilder.cs
- WsatServiceCertificate.cs
- SearchForVirtualItemEventArgs.cs
- DelegatingConfigHost.cs
- ReadingWritingEntityEventArgs.cs
- elementinformation.cs
- QilVisitor.cs
- PartManifestEntry.cs
- CommandPlan.cs
- SchemaElementDecl.cs
- CellIdBoolean.cs
- log.cs
- SizeChangedInfo.cs
- AccessibleObject.cs
- StackSpiller.Generated.cs
- FtpCachePolicyElement.cs
- VectorKeyFrameCollection.cs
- Utility.cs
- NullRuntimeConfig.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- PageStatePersister.cs
- PackagingUtilities.cs
- SystemInformation.cs
- SqlWebEventProvider.cs
- ArrayElementGridEntry.cs
- MatrixValueSerializer.cs
- XslException.cs
- DataTablePropertyDescriptor.cs
- DataControlFieldHeaderCell.cs
- CLSCompliantAttribute.cs
- ToolboxItemCollection.cs
- RequestResizeEvent.cs
- HostedHttpRequestAsyncResult.cs
- ListViewTableRow.cs
- TextLine.cs
- RSAPKCS1SignatureDeformatter.cs
- OleDbPermission.cs
- SocketInformation.cs
- EncodingDataItem.cs
- CookielessHelper.cs
- WmlListAdapter.cs
- Types.cs
- StorageEntitySetMapping.cs
- UnsafeNativeMethods.cs
- XmlDataDocument.cs
- ProfessionalColorTable.cs
- TextBoxAutoCompleteSourceConverter.cs
- FamilyMapCollection.cs
- HtmlMeta.cs
- XPathDocumentIterator.cs
- TypeResolvingOptionsAttribute.cs
- ResourceWriter.cs
- FontUnitConverter.cs
- ExtendedPropertyDescriptor.cs
- ConfigurationPropertyCollection.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- DataGridViewSelectedCellCollection.cs
- EmissiveMaterial.cs