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
- OdbcException.cs
- DbConnectionHelper.cs
- ComponentGlyph.cs
- BuildProviderAppliesToAttribute.cs
- ProcessModelSection.cs
- _RequestLifetimeSetter.cs
- _FtpControlStream.cs
- TimeSpanSecondsConverter.cs
- TypeLoadException.cs
- ConnectionManagementElement.cs
- Matrix3DConverter.cs
- Page.cs
- XmlElement.cs
- ProviderCommandInfoUtils.cs
- DesignerDataSchemaClass.cs
- AssociativeAggregationOperator.cs
- SqlNotificationRequest.cs
- RoleService.cs
- MdiWindowListStrip.cs
- GuidConverter.cs
- RegisteredHiddenField.cs
- _SecureChannel.cs
- ProviderException.cs
- SoapSchemaImporter.cs
- Solver.cs
- DataColumnChangeEvent.cs
- XmlNode.cs
- Keywords.cs
- Timer.cs
- SystemNetworkInterface.cs
- SimpleMailWebEventProvider.cs
- TileBrush.cs
- ZipIOBlockManager.cs
- HostingEnvironmentException.cs
- RawStylusInputReport.cs
- EventMappingSettingsCollection.cs
- WebOperationContext.cs
- Pen.cs
- OutputScope.cs
- OracleFactory.cs
- ObjectToModelValueConverter.cs
- ColorTransform.cs
- ProfilePropertyMetadata.cs
- BitmapCache.cs
- ProxyWebPart.cs
- StylusButtonCollection.cs
- Transform3D.cs
- XmlUtil.cs
- PropertyReferenceSerializer.cs
- ExecutionEngineException.cs
- WaitingCursor.cs
- HttpApplicationFactory.cs
- UrlAuthFailureHandler.cs
- BinaryMethodMessage.cs
- FormViewPageEventArgs.cs
- SafeIUnknown.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- VirtualizedItemProviderWrapper.cs
- SystemKeyConverter.cs
- DictionaryEntry.cs
- BinaryObjectReader.cs
- Module.cs
- IntPtr.cs
- FilterQuery.cs
- SafeRightsManagementQueryHandle.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- SqlProviderManifest.cs
- SortDescriptionCollection.cs
- GenericWebPart.cs
- HeaderedItemsControl.cs
- SchemaElementLookUpTable.cs
- SequentialActivityDesigner.cs
- SqlError.cs
- ChooseAction.cs
- DocumentViewerConstants.cs
- Rotation3D.cs
- ConfigurationSectionGroupCollection.cs
- DrawingGroup.cs
- UnmanagedMarshal.cs
- GridViewHeaderRowPresenter.cs
- ValidationSummary.cs
- AttributeExtensions.cs
- JavaScriptObjectDeserializer.cs
- BinaryWriter.cs
- TextBox.cs
- OleDbPropertySetGuid.cs
- ActivityWithResultConverter.cs
- EmptyEnumerator.cs
- SpecularMaterial.cs
- PropertyInfoSet.cs
- QilLoop.cs
- XmlMapping.cs
- ToolStripTextBox.cs
- securitycriticaldata.cs
- Int32RectConverter.cs
- ReflectionHelper.cs
- DataGridViewComboBoxEditingControl.cs
- PropVariant.cs
- XhtmlConformanceSection.cs
- ApplicationManager.cs