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
- OracleTimeSpan.cs
- ExceptionHandlersDesigner.cs
- DataGridViewAdvancedBorderStyle.cs
- PropertySegmentSerializer.cs
- Guid.cs
- ListViewInsertionMark.cs
- WebSysDisplayNameAttribute.cs
- ExtenderControl.cs
- EncoderExceptionFallback.cs
- ObjectQueryProvider.cs
- SamlAdvice.cs
- EnterpriseServicesHelper.cs
- SchemaTypeEmitter.cs
- SQLBinary.cs
- WhiteSpaceTrimStringConverter.cs
- ProfileService.cs
- ObjectDataSourceView.cs
- SRef.cs
- Vector.cs
- BlurBitmapEffect.cs
- SafeMILHandle.cs
- ContractTypeNameCollection.cs
- CompareInfo.cs
- CacheMode.cs
- RestClientProxyHandler.cs
- RecordConverter.cs
- SubpageParagraph.cs
- DeploymentSection.cs
- PasswordDeriveBytes.cs
- ProfileService.cs
- RuntimeWrappedException.cs
- DocumentViewerAutomationPeer.cs
- XmlSchema.cs
- SafeRegistryKey.cs
- WebBrowserUriTypeConverter.cs
- LogLogRecordEnumerator.cs
- relpropertyhelper.cs
- BypassElementCollection.cs
- TimeoutValidationAttribute.cs
- HttpGetServerProtocol.cs
- DSASignatureFormatter.cs
- JsonSerializer.cs
- BitmapEncoder.cs
- XamlWriter.cs
- FocusTracker.cs
- EventProxy.cs
- SoapIgnoreAttribute.cs
- PkcsMisc.cs
- XamlRtfConverter.cs
- HTMLTagNameToTypeMapper.cs
- DbConnectionStringCommon.cs
- Boolean.cs
- PageTheme.cs
- PropertyInformation.cs
- CustomTrackingRecord.cs
- SRGSCompiler.cs
- BulletedListEventArgs.cs
- PasswordPropertyTextAttribute.cs
- XmlAutoDetectWriter.cs
- EmptyEnumerable.cs
- SiteIdentityPermission.cs
- ExpressionLexer.cs
- TypeConverter.cs
- XmlNodeReader.cs
- HelpFileFileNameEditor.cs
- Menu.cs
- LineGeometry.cs
- ObjectAnimationBase.cs
- System.Data_BID.cs
- OrthographicCamera.cs
- InternalConfigEventArgs.cs
- CollectionChangedEventManager.cs
- AnimationLayer.cs
- AnimationException.cs
- StreamAsIStream.cs
- TextEditorThreadLocalStore.cs
- XpsS0ValidatingLoader.cs
- Document.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- StandardCommandToolStripMenuItem.cs
- UnSafeCharBuffer.cs
- SplitterPanel.cs
- ObjectKeyFrameCollection.cs
- AuthenticationService.cs
- DayRenderEvent.cs
- _emptywebproxy.cs
- DesignerGeometryHelper.cs
- KoreanLunisolarCalendar.cs
- CommonServiceBehaviorElement.cs
- UntypedNullExpression.cs
- ExceptionHandlersDesigner.cs
- SoapIgnoreAttribute.cs
- StringWriter.cs
- ComEventsHelper.cs
- BitmapCache.cs
- XmlChildEnumerator.cs
- DefaultPrintController.cs
- UnsafeNativeMethods.cs
- ManualResetEvent.cs
- OrderByQueryOptionExpression.cs