Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- processwaithandle.cs
- NavigationProperty.cs
- FontFamilyValueSerializer.cs
- DateTimeFormatInfoScanner.cs
- ToolTipService.cs
- DisplayInformation.cs
- OracleDataAdapter.cs
- SvcMapFileLoader.cs
- StructuredProperty.cs
- DictionaryKeyPropertyAttribute.cs
- SamlAuthorityBinding.cs
- TableParaClient.cs
- CharConverter.cs
- ScalarConstant.cs
- ReflectionServiceProvider.cs
- SudsCommon.cs
- CurrencyManager.cs
- CodeGenerator.cs
- GraphicsState.cs
- sqlstateclientmanager.cs
- MailBnfHelper.cs
- Thickness.cs
- DmlSqlGenerator.cs
- RootBrowserWindowProxy.cs
- VBCodeProvider.cs
- ConfigurationValue.cs
- ProbeDuplex11AsyncResult.cs
- WindowsListViewGroup.cs
- BoolExpr.cs
- XmlReflectionMember.cs
- SelectionProcessor.cs
- NetworkInformationException.cs
- StandardOleMarshalObject.cs
- BaseParaClient.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- TypedElement.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- CacheSection.cs
- DrawingVisualDrawingContext.cs
- DesignerHierarchicalDataSourceView.cs
- DocumentViewerBaseAutomationPeer.cs
- FragmentQuery.cs
- Lasso.cs
- ListenerSingletonConnectionReader.cs
- DataGridViewSelectedRowCollection.cs
- XPathNodeHelper.cs
- DataGridViewDataErrorEventArgs.cs
- LineVisual.cs
- TableAutomationPeer.cs
- SqlStream.cs
- TextSpanModifier.cs
- BindingListCollectionView.cs
- PageParser.cs
- SecurityException.cs
- WindowsStatusBar.cs
- WebDescriptionAttribute.cs
- DataGridTextBox.cs
- xsdvalidator.cs
- BrowserDefinition.cs
- SiteMapPathDesigner.cs
- DiffuseMaterial.cs
- IssuedSecurityTokenParameters.cs
- RecognizedAudio.cs
- CssStyleCollection.cs
- HeaderPanel.cs
- WmlLinkAdapter.cs
- RegexBoyerMoore.cs
- GradientBrush.cs
- ExpressionBindings.cs
- DocumentOrderQuery.cs
- Helper.cs
- SortDescription.cs
- DataGridCell.cs
- ToolStripItemDesigner.cs
- Point3D.cs
- RepeatButtonAutomationPeer.cs
- NativeActivityContext.cs
- Light.cs
- SafeTimerHandle.cs
- DefaultObjectMappingItemCollection.cs
- ConfigurationPropertyAttribute.cs
- ProcessModuleCollection.cs
- ColorTranslator.cs
- XmlBinaryWriter.cs
- IntSecurity.cs
- HTMLTextWriter.cs
- ExtendedProperty.cs
- GeometryCombineModeValidation.cs
- PersonalizationProvider.cs
- XmlWhitespace.cs
- DbConnectionOptions.cs
- TextOptions.cs
- Win32SafeHandles.cs
- Guid.cs
- ConnectionPoint.cs
- PeerToPeerException.cs
- DataGridViewColumnStateChangedEventArgs.cs
- OrderByBuilder.cs
- glyphs.cs
- ScrollEvent.cs