Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Documents / RtfToken.cs / 1 / RtfToken.cs
//---------------------------------------------------------------------------- // // File: RtfToken.cs // // Copyright (C) Microsoft Corporation. All rights reserved. // // Description: Rtf token that will specify the rtf token type, control and name. // //--------------------------------------------------------------------------- namespace System.Windows.Documents { ////// Rtf token that include rtf token type, control, name and parameter value. /// internal class RtfToken { #region Internal Consts //----------------------------------------------------- // // Internal Consts // //----------------------------------------------------- internal const long INVALID_PARAMETER = 0x10000000; #endregion Internal Consts //------------------------------------------------------ // // Constructors // //----------------------------------------------------- #region Constructors ////// /// internal RtfToken() { } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods internal void Empty() { _type = RtfTokenType.TokenInvalid; _rtfControlWordInfo = null; _parameter = INVALID_PARAMETER; _text = ""; } #endregion Internal Methods //----------------------------------------------------- // // Internal Properties // //------------------------------------------------------ #region Internal Properties internal RtfTokenType Type { get { return _type; } set { _type = value; } } internal RtfControlWordInfo RtfControlWordInfo { get { return _rtfControlWordInfo; } set { _rtfControlWordInfo = value; } } internal long Parameter { get { return HasParameter ? _parameter : 0; } set { _parameter = value; } } internal string Text { get { return _text; } set { _text = value; } } internal long ToggleValue { get { return HasParameter ? Parameter : 1; } } internal bool FlagValue { get { return (!HasParameter || (HasParameter && Parameter > 0) ? true : false); } } internal bool HasParameter { get { return _parameter != INVALID_PARAMETER; } } #endregion Internal Properties //----------------------------------------------------- // // Private Fields // //----------------------------------------------------- #region Private Fields private RtfTokenType _type; private RtfControlWordInfo _rtfControlWordInfo; private long _parameter; private string _text; #endregion Private Fields } } // 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
- TimeSpanSecondsConverter.cs
- DefaultAssemblyResolver.cs
- WindowsScroll.cs
- ListBoxItemWrapperAutomationPeer.cs
- OracleException.cs
- TextPenaltyModule.cs
- ContentFilePart.cs
- ParameterInfo.cs
- ProviderSettings.cs
- EDesignUtil.cs
- WorkflowRequestContext.cs
- PlainXmlWriter.cs
- RedistVersionInfo.cs
- NamespaceInfo.cs
- Polyline.cs
- ServiceModelSecurityTokenRequirement.cs
- RangeValueProviderWrapper.cs
- ConfigurationStrings.cs
- FixedFlowMap.cs
- TrimSurroundingWhitespaceAttribute.cs
- SQLDoubleStorage.cs
- HtmlLink.cs
- PropertyRef.cs
- AppDomainUnloadedException.cs
- XmlBoundElement.cs
- XmlDesigner.cs
- PropertyMapper.cs
- VirtualDirectoryMappingCollection.cs
- Char.cs
- MsmqActivation.cs
- FileFormatException.cs
- MemberExpressionHelper.cs
- StreamMarshaler.cs
- ImageField.cs
- XmlReflectionImporter.cs
- RefType.cs
- XsdValidatingReader.cs
- DataException.cs
- SourceLocationProvider.cs
- SuspendDesigner.cs
- Psha1DerivedKeyGenerator.cs
- ObjectDataSourceDisposingEventArgs.cs
- HttpCacheVaryByContentEncodings.cs
- MemberProjectedSlot.cs
- CompletionProxy.cs
- InvariantComparer.cs
- AutomationElementCollection.cs
- EncryptedXml.cs
- X509CertificateCollection.cs
- XmlSchemaComplexContentRestriction.cs
- EventLogPropertySelector.cs
- BooleanExpr.cs
- MetadataItemSerializer.cs
- LinqDataSourceUpdateEventArgs.cs
- securitycriticaldataClass.cs
- FixedDSBuilder.cs
- SiteMapDataSourceView.cs
- DesignTimeVisibleAttribute.cs
- SubqueryTrackingVisitor.cs
- ListManagerBindingsCollection.cs
- ObjectStateFormatter.cs
- ModelPropertyCollectionImpl.cs
- SystemIcmpV6Statistics.cs
- ColumnResizeAdorner.cs
- NotSupportedException.cs
- BehaviorEditorPart.cs
- DocumentViewerBaseAutomationPeer.cs
- LocationUpdates.cs
- ResourceReader.cs
- ControlTemplate.cs
- AuthenticatedStream.cs
- CalendarTable.cs
- HuffCodec.cs
- SiteMapDataSource.cs
- StorageBasedPackageProperties.cs
- PageAsyncTask.cs
- SignatureSummaryDialog.cs
- CatalogPart.cs
- RectAnimationUsingKeyFrames.cs
- SplitterPanel.cs
- ADRoleFactory.cs
- ClientProxyGenerator.cs
- CssTextWriter.cs
- MergeFilterQuery.cs
- CallbackValidatorAttribute.cs
- DataPointer.cs
- DecoderFallback.cs
- COM2ComponentEditor.cs
- MetaData.cs
- followingquery.cs
- DataServiceExpressionVisitor.cs
- PropertyBuilder.cs
- AppSettingsExpressionBuilder.cs
- TraceFilter.cs
- EventQueueState.cs
- SettingsPropertyValueCollection.cs
- PagesSection.cs
- ListItemCollection.cs
- PeerEndPoint.cs
- NamespaceListProperty.cs