Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / RtfFormatStack.cs / 1305600 / 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
- GuidConverter.cs
- SecurityTokenRequirement.cs
- DurableDispatcherAddressingFault.cs
- StyleXamlParser.cs
- TargetParameterCountException.cs
- DataGridViewColumnHeaderCell.cs
- ArithmeticException.cs
- UnionExpr.cs
- VectorCollectionConverter.cs
- CompiledQuery.cs
- HttpResponseWrapper.cs
- TraceSource.cs
- Empty.cs
- FileVersionInfo.cs
- EntityDataSourceChangedEventArgs.cs
- FreezableCollection.cs
- CompositeDataBoundControl.cs
- ColumnReorderedEventArgs.cs
- SplineKeyFrames.cs
- PackWebResponse.cs
- TextTreeRootNode.cs
- XmlSchemaComplexContent.cs
- CommentGlyph.cs
- WebPartEditorApplyVerb.cs
- processwaithandle.cs
- XmlnsPrefixAttribute.cs
- ProgramNode.cs
- HMACSHA384.cs
- JobDuplex.cs
- BuildProviderCollection.cs
- ImageIndexEditor.cs
- AutoResizedEvent.cs
- LongTypeConverter.cs
- PropertyFilterAttribute.cs
- XsdDuration.cs
- connectionpool.cs
- Emitter.cs
- UIElement3DAutomationPeer.cs
- OdbcConnectionPoolProviderInfo.cs
- EntityClientCacheEntry.cs
- COM2IDispatchConverter.cs
- EmptyStringExpandableObjectConverter.cs
- AssemblyUtil.cs
- PropertyManager.cs
- SortableBindingList.cs
- AttachedPropertiesService.cs
- MethodCallConverter.cs
- KnownIds.cs
- FontClient.cs
- MergeFailedEvent.cs
- OrderedHashRepartitionEnumerator.cs
- CodeRegionDirective.cs
- KeyPullup.cs
- RegistryPermission.cs
- ProfessionalColorTable.cs
- TextElementEnumerator.cs
- PassportIdentity.cs
- GridViewSelectEventArgs.cs
- odbcmetadatafactory.cs
- ServicePointManagerElement.cs
- CollectionContainer.cs
- StylusPointPropertyInfoDefaults.cs
- GC.cs
- ServiceProviders.cs
- ParameterRetriever.cs
- XmlSchemaExporter.cs
- TrackBar.cs
- TransformProviderWrapper.cs
- PageRequestManager.cs
- WebServiceMethodData.cs
- DoubleKeyFrameCollection.cs
- CompilationPass2TaskInternal.cs
- DataSourceXmlSubItemAttribute.cs
- AccessDataSourceView.cs
- MSAANativeProvider.cs
- TreeViewImageIndexConverter.cs
- TemplateBindingExpressionConverter.cs
- InternalConfigEventArgs.cs
- Attributes.cs
- CommandConverter.cs
- BinaryConverter.cs
- Security.cs
- DesignerCalendarAdapter.cs
- ColumnHeader.cs
- RequestStatusBarUpdateEventArgs.cs
- EllipticalNodeOperations.cs
- Frame.cs
- Model3D.cs
- CustomAttributeBuilder.cs
- CFStream.cs
- ItemCheckedEvent.cs
- HttpResponseInternalWrapper.cs
- GroupQuery.cs
- OwnerDrawPropertyBag.cs
- ReplyAdapterChannelListener.cs
- TcpSocketManager.cs
- OleDbReferenceCollection.cs
- FixedSOMTable.cs
- ParameterReplacerVisitor.cs
- ContentPlaceHolderDesigner.cs