Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- WebConfigurationFileMap.cs
- CompressedStack.cs
- VBIdentifierName.cs
- util.cs
- ClientSettingsStore.cs
- _HeaderInfoTable.cs
- SqlProviderServices.cs
- StreamingContext.cs
- TypeToTreeConverter.cs
- LayoutTable.cs
- Rfc2898DeriveBytes.cs
- ProxyWebPartManagerDesigner.cs
- Image.cs
- FunctionDescription.cs
- ToolStripContainer.cs
- DataRowExtensions.cs
- Point.cs
- NavigationCommands.cs
- DbProviderSpecificTypePropertyAttribute.cs
- InternalSafeNativeMethods.cs
- Rotation3DAnimationUsingKeyFrames.cs
- Internal.cs
- TrackingProfileCache.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DesignerSerializationOptionsAttribute.cs
- ColorPalette.cs
- OracleLob.cs
- ZipIOCentralDirectoryFileHeader.cs
- SurrogateChar.cs
- AccessDataSourceWizardForm.cs
- UserControl.cs
- XmlReflectionMember.cs
- WebPartDescription.cs
- ProgressBarBrushConverter.cs
- ValidationSummary.cs
- _Semaphore.cs
- EncryptRequest.cs
- _Rfc2616CacheValidators.cs
- PersianCalendar.cs
- RestHandler.cs
- validation.cs
- SchemaDeclBase.cs
- Brush.cs
- GroupByQueryOperator.cs
- PathSegment.cs
- SoapSchemaImporter.cs
- AspNetSynchronizationContext.cs
- DataBoundControlActionList.cs
- FormattedText.cs
- XhtmlBasicSelectionListAdapter.cs
- BStrWrapper.cs
- TcpHostedTransportConfiguration.cs
- InvariantComparer.cs
- PropertyPath.cs
- ZoneIdentityPermission.cs
- CreationContext.cs
- MergeFailedEvent.cs
- EditorPartCollection.cs
- GenericQueueSurrogate.cs
- UserValidatedEventArgs.cs
- NameValuePermission.cs
- CustomActivityDesigner.cs
- ComponentDispatcherThread.cs
- HtmlWindowCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SapiRecognizer.cs
- DefaultProxySection.cs
- StringInfo.cs
- DrawingImage.cs
- XmlSerializableWriter.cs
- StorageEntityContainerMapping.cs
- CultureTableRecord.cs
- ConfigXmlComment.cs
- ManagementException.cs
- HandleRef.cs
- KerberosRequestorSecurityToken.cs
- CookielessHelper.cs
- PageThemeParser.cs
- Error.cs
- Section.cs
- DesignerVerb.cs
- DecimalAnimationBase.cs
- CookielessData.cs
- ObfuscationAttribute.cs
- GeneralTransform.cs
- CounterSample.cs
- OracleTransaction.cs
- StylusButtonEventArgs.cs
- MembershipValidatePasswordEventArgs.cs
- CookielessData.cs
- DataRowChangeEvent.cs
- Highlights.cs
- EmbossBitmapEffect.cs
- CorruptingExceptionCommon.cs
- Math.cs
- WebPartConnectionsEventArgs.cs
- IndexingContentUnit.cs
- Int64Converter.cs
- Crc32Helper.cs
- EmptyEnumerator.cs