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
- Mappings.cs
- PageCatalogPart.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- BaseResourcesBuildProvider.cs
- RenameRuleObjectDialog.cs
- OdbcConnectionFactory.cs
- StringValidatorAttribute.cs
- DatePickerDateValidationErrorEventArgs.cs
- VersionPair.cs
- CachedPathData.cs
- ObservableDictionary.cs
- AnchorEditor.cs
- DataGridViewRowsRemovedEventArgs.cs
- RelationHandler.cs
- DirectoryObjectSecurity.cs
- CacheVirtualItemsEvent.cs
- AssemblyAttributesGoHere.cs
- PropertyGeneratedEventArgs.cs
- WriterOutput.cs
- PersonalizableAttribute.cs
- WindowsIPAddress.cs
- shaper.cs
- ValidationManager.cs
- SHA512Managed.cs
- WebPartConnectionsConnectVerb.cs
- View.cs
- ValueOfAction.cs
- TypeElement.cs
- RoleProviderPrincipal.cs
- InternalTypeHelper.cs
- DelegatedStream.cs
- UnionExpr.cs
- EncoderBestFitFallback.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- ComplexPropertyEntry.cs
- DeflateEmulationStream.cs
- RectValueSerializer.cs
- RubberbandSelector.cs
- HashHelper.cs
- QuotaExceededException.cs
- InputLanguageProfileNotifySink.cs
- TimeSpanStorage.cs
- XmlIlTypeHelper.cs
- ProfileService.cs
- PropertyIDSet.cs
- UnsafeCollabNativeMethods.cs
- RemotingServices.cs
- BinaryObjectInfo.cs
- XamlInt32CollectionSerializer.cs
- DragEvent.cs
- ProxyAttribute.cs
- CommandDesigner.cs
- Debugger.cs
- TableTextElementCollectionInternal.cs
- WeakEventTable.cs
- Walker.cs
- SystemResources.cs
- ComponentRenameEvent.cs
- ResolvedKeyFrameEntry.cs
- DbConnectionOptions.cs
- EntityViewGenerator.cs
- SynchronizedInputPattern.cs
- OlePropertyStructs.cs
- PrintController.cs
- TabItemWrapperAutomationPeer.cs
- MenuItemStyleCollection.cs
- Exception.cs
- EventHandlerList.cs
- _ProxyRegBlob.cs
- SimpleTypesSurrogate.cs
- PipelineModuleStepContainer.cs
- AuthenticationService.cs
- ReflectionPermission.cs
- ProtocolViolationException.cs
- RightNameExpirationInfoPair.cs
- ForeignKeyFactory.cs
- InkPresenterAutomationPeer.cs
- AuthenticationModuleElementCollection.cs
- DataColumnChangeEvent.cs
- DetailsViewUpdateEventArgs.cs
- DbTransaction.cs
- AutoGeneratedFieldProperties.cs
- AppSettingsExpressionBuilder.cs
- Cursors.cs
- HashCryptoHandle.cs
- XmlComplianceUtil.cs
- ServiceDesigner.cs
- xmlfixedPageInfo.cs
- MessageSmuggler.cs
- SecurityTokenSerializer.cs
- PreviousTrackingServiceAttribute.cs
- InvalidPrinterException.cs
- RoutedEventConverter.cs
- AppDomainFactory.cs
- IntPtr.cs
- ImpersonateTokenRef.cs
- SerializableAttribute.cs
- XmlCharCheckingWriter.cs
- EditorPart.cs
- OrderedDictionary.cs