Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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. //---------------------------------------------------------------------------- // // 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
- DefaultAsyncDataDispatcher.cs
- HtmlLink.cs
- NavigationWindow.cs
- ReadOnlyAttribute.cs
- webclient.cs
- XPathQueryGenerator.cs
- TabPage.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ProcessManager.cs
- ArithmeticException.cs
- FormsAuthentication.cs
- InputReportEventArgs.cs
- MexNamedPipeBindingCollectionElement.cs
- LateBoundBitmapDecoder.cs
- SelectionRange.cs
- OrderToken.cs
- WebPartUtil.cs
- LocalizableAttribute.cs
- SizeAnimationUsingKeyFrames.cs
- Int16Animation.cs
- BufferBuilder.cs
- Pen.cs
- XAMLParseException.cs
- TypeConverterAttribute.cs
- SystemDropShadowChrome.cs
- TypedElement.cs
- DataGridTablesFactory.cs
- CompilationSection.cs
- DataServiceContext.cs
- ColumnBinding.cs
- DefaultProxySection.cs
- TcpPortSharing.cs
- InternalRelationshipCollection.cs
- ModelTreeEnumerator.cs
- ValueChangedEventManager.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ModuleBuilder.cs
- SecurityKeyEntropyMode.cs
- MemberCollection.cs
- UnaryOperationBinder.cs
- ObjectDataSourceChooseMethodsPanel.cs
- PropertyTabAttribute.cs
- GlobalProxySelection.cs
- Style.cs
- Pen.cs
- FrameworkContextData.cs
- RuntimeUtils.cs
- EntityStoreSchemaFilterEntry.cs
- TransportationConfigurationTypeInstallComponent.cs
- ApplicationServiceHelper.cs
- ReflectionTypeLoadException.cs
- SignatureToken.cs
- _PooledStream.cs
- SnapLine.cs
- FixedPageProcessor.cs
- ImageList.cs
- IDispatchConstantAttribute.cs
- ConvertEvent.cs
- AsymmetricKeyExchangeDeformatter.cs
- TargetInvocationException.cs
- DataReceivedEventArgs.cs
- UIPropertyMetadata.cs
- ADConnectionHelper.cs
- xmlformatgeneratorstatics.cs
- ToggleProviderWrapper.cs
- SqlFacetAttribute.cs
- DictionaryKeyPropertyAttribute.cs
- PolyQuadraticBezierSegment.cs
- ObjectDataSourceDisposingEventArgs.cs
- ObjectDataProvider.cs
- XmlLanguage.cs
- ProfilePropertySettingsCollection.cs
- ContentPropertyAttribute.cs
- InfiniteIntConverter.cs
- DivideByZeroException.cs
- HttpTransportManager.cs
- PropertyDescriptorComparer.cs
- CellLabel.cs
- CheckedPointers.cs
- Viewport2DVisual3D.cs
- WindowsProgressbar.cs
- _ConnectOverlappedAsyncResult.cs
- DelegatingConfigHost.cs
- OracleTimeSpan.cs
- XPathQilFactory.cs
- Polyline.cs
- SoapEnumAttribute.cs
- XPathNavigatorReader.cs
- TextParagraphProperties.cs
- QilBinary.cs
- ProfileParameter.cs
- TryExpression.cs
- EntitySet.cs
- UnknownBitmapDecoder.cs
- MetadataCacheItem.cs
- IDictionary.cs
- TitleStyle.cs
- DefinitionUpdate.cs
- dbdatarecord.cs
- CommandLibraryHelper.cs