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
- _NativeSSPI.cs
- DataTableCollection.cs
- HyperLinkField.cs
- DataServiceExpressionVisitor.cs
- Int32CollectionConverter.cs
- Lease.cs
- SimpleRecyclingCache.cs
- EncryptedType.cs
- CodeIterationStatement.cs
- input.cs
- CollectionChangedEventManager.cs
- IList.cs
- ColumnMap.cs
- GAC.cs
- HashStream.cs
- DataControlCommands.cs
- ValueTable.cs
- XmlWrappingReader.cs
- ToolStripDropDownMenu.cs
- UnsafeNativeMethods.cs
- Parameter.cs
- ReflectionHelper.cs
- ImportException.cs
- DataColumnMappingCollection.cs
- PersonalizationEntry.cs
- DependencyObjectType.cs
- CqlParserHelpers.cs
- HttpCacheParams.cs
- safelink.cs
- BuildResultCache.cs
- PropertyReferenceSerializer.cs
- handlecollector.cs
- MsmqHostedTransportManager.cs
- Page.cs
- TargetConverter.cs
- DiscoveryDocumentReference.cs
- ParameterBuilder.cs
- ReceiveMessageContent.cs
- Sequence.cs
- NonParentingControl.cs
- MultiBinding.cs
- VectorAnimationBase.cs
- LocalizableResourceBuilder.cs
- WebPartZoneBase.cs
- TokenBasedSet.cs
- XmlName.cs
- GridViewRowEventArgs.cs
- WindowsGraphics.cs
- CopyAttributesAction.cs
- parserscommon.cs
- HashMembershipCondition.cs
- CommandValueSerializer.cs
- Maps.cs
- DispatcherProcessingDisabled.cs
- ZipIOModeEnforcingStream.cs
- XmlWriter.cs
- CodeTypeMember.cs
- AsyncOperation.cs
- XmlDocumentSerializer.cs
- PageThemeCodeDomTreeGenerator.cs
- DependencyPropertyChangedEventArgs.cs
- ContractInstanceProvider.cs
- LayoutEvent.cs
- DetailsViewAutoFormat.cs
- PnrpPermission.cs
- EntityParameterCollection.cs
- EnumMemberAttribute.cs
- HMACSHA256.cs
- ToolboxComponentsCreatedEventArgs.cs
- BlockUIContainer.cs
- CharStorage.cs
- MethodExpr.cs
- EventWaitHandleSecurity.cs
- DataGridViewCellStyle.cs
- AutomationPropertyInfo.cs
- ScopeElement.cs
- TemplateKey.cs
- RequestFactory.cs
- DuplicateWaitObjectException.cs
- ApplicationInfo.cs
- SqlTypesSchemaImporter.cs
- CancellableEnumerable.cs
- MessageBox.cs
- WebPartMenuStyle.cs
- WebConfigurationHostFileChange.cs
- XPathBuilder.cs
- WorkItem.cs
- LicenseProviderAttribute.cs
- FactoryGenerator.cs
- ExpressionBindingCollection.cs
- StrokeFIndices.cs
- dbdatarecord.cs
- ColorPalette.cs
- DockPattern.cs
- OrthographicCamera.cs
- TextTrailingWordEllipsis.cs
- KnownTypeAttribute.cs
- SolidBrush.cs
- PropertyPathWorker.cs
- DataGridViewRowCollection.cs