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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AtomServiceDocumentSerializer.cs
- EntityDataReader.cs
- ReadOnlyPropertyMetadata.cs
- HandlerFactoryCache.cs
- WeakReferenceEnumerator.cs
- QuaternionAnimationUsingKeyFrames.cs
- TextEndOfParagraph.cs
- MaskInputRejectedEventArgs.cs
- InputProcessorProfilesLoader.cs
- ServicePointManagerElement.cs
- OdbcReferenceCollection.cs
- TrailingSpaceComparer.cs
- NonDualMessageSecurityOverHttpElement.cs
- ExportException.cs
- ListControl.cs
- SHA1Cng.cs
- BuilderPropertyEntry.cs
- TemplateKeyConverter.cs
- DrawToolTipEventArgs.cs
- ActivityExecutionContextCollection.cs
- New.cs
- Rotation3DAnimation.cs
- XmlNamespaceManager.cs
- ButtonRenderer.cs
- Geometry3D.cs
- OleDbParameter.cs
- EtwProvider.cs
- TextBlockAutomationPeer.cs
- WmlLiteralTextAdapter.cs
- MultilineStringConverter.cs
- CommandPlan.cs
- QuaternionRotation3D.cs
- CancellationScope.cs
- CFStream.cs
- DataControlFieldHeaderCell.cs
- PointKeyFrameCollection.cs
- TreeBuilderBamlTranslator.cs
- SimpleHandlerFactory.cs
- Token.cs
- QilUnary.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- UserInitiatedNavigationPermission.cs
- Unit.cs
- KeyInterop.cs
- AttachedPropertyMethodSelector.cs
- UpdateTranslator.cs
- TrailingSpaceComparer.cs
- IncrementalCompileAnalyzer.cs
- PolyBezierSegment.cs
- FormsAuthenticationEventArgs.cs
- XmlSchemaSimpleContentRestriction.cs
- SecurityContext.cs
- WebPartConnectionsConfigureVerb.cs
- GeometryHitTestResult.cs
- Utils.cs
- XmlMapping.cs
- PipelineModuleStepContainer.cs
- OptimalBreakSession.cs
- PasswordPropertyTextAttribute.cs
- RectConverter.cs
- XmlSchemas.cs
- OleAutBinder.cs
- CheckPair.cs
- SourceFilter.cs
- PerfCounters.cs
- GlyphingCache.cs
- TextViewBase.cs
- Registry.cs
- PolicyManager.cs
- HMACSHA512.cs
- NestedContainer.cs
- WebDescriptionAttribute.cs
- ObjectConverter.cs
- EntryPointNotFoundException.cs
- CryptoHandle.cs
- Camera.cs
- HitTestParameters.cs
- ClientTargetSection.cs
- BypassElement.cs
- ButtonBaseDesigner.cs
- BamlBinaryReader.cs
- BinaryParser.cs
- XsdCachingReader.cs
- CellRelation.cs
- ListViewInsertionMark.cs
- Durable.cs
- WeakEventTable.cs
- GACMembershipCondition.cs
- ClientRolePrincipal.cs
- CounterCreationDataCollection.cs
- CapabilitiesPattern.cs
- Query.cs
- LogicalTreeHelper.cs
- RowBinding.cs
- TableLayoutCellPaintEventArgs.cs
- CodeMethodInvokeExpression.cs
- ViewManager.cs
- DataGrid.cs
- EnterpriseServicesHelper.cs
- HttpCookiesSection.cs