Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / RtfToken.cs / 1305600 / 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
- DivideByZeroException.cs
- MouseCaptureWithinProperty.cs
- RsaSecurityToken.cs
- ProfileParameter.cs
- EntityViewContainer.cs
- WindowsListViewGroup.cs
- _Connection.cs
- MetadataAssemblyHelper.cs
- OutputWindow.cs
- TextCompositionManager.cs
- BamlRecordWriter.cs
- SchemaImporterExtensionsSection.cs
- Model3D.cs
- BaseCAMarshaler.cs
- FormViewPagerRow.cs
- Utils.cs
- ToolStripStatusLabel.cs
- ImageFormat.cs
- ProgressBar.cs
- WaitHandle.cs
- DBCommandBuilder.cs
- NamedPipeProcessProtocolHandler.cs
- InfoCardSymmetricCrypto.cs
- ReferencedAssembly.cs
- CodeSnippetTypeMember.cs
- BuildManagerHost.cs
- MessageRpc.cs
- Random.cs
- SqlNodeAnnotation.cs
- Activator.cs
- UserValidatedEventArgs.cs
- ExpressionBuilder.cs
- Quaternion.cs
- SectionRecord.cs
- MatchSingleFxEngineOpcode.cs
- FrameworkElementAutomationPeer.cs
- ProgressBarAutomationPeer.cs
- InstanceCollisionException.cs
- GenericWebPart.cs
- RequestQueryParser.cs
- EncoderParameters.cs
- FormsAuthenticationCredentials.cs
- Ray3DHitTestResult.cs
- SqlClientPermission.cs
- MailWebEventProvider.cs
- SerializationStore.cs
- DeploymentSectionCache.cs
- IncrementalReadDecoders.cs
- COM2ComponentEditor.cs
- PathParser.cs
- RIPEMD160Managed.cs
- FileLevelControlBuilderAttribute.cs
- TextStore.cs
- WindowsGraphicsCacheManager.cs
- NotifyCollectionChangedEventArgs.cs
- DbConnectionPoolOptions.cs
- XmlSchemaNotation.cs
- StaticFileHandler.cs
- DataExpression.cs
- SqlUserDefinedTypeAttribute.cs
- FormatConvertedBitmap.cs
- VectorCollectionValueSerializer.cs
- HtmlInputCheckBox.cs
- TextElementAutomationPeer.cs
- DbReferenceCollection.cs
- AbandonedMutexException.cs
- GrammarBuilderPhrase.cs
- DBSchemaRow.cs
- PathData.cs
- FacetValueContainer.cs
- ColumnResult.cs
- CutCopyPasteHelper.cs
- processwaithandle.cs
- WindowPatternIdentifiers.cs
- CookieProtection.cs
- ErrorStyle.cs
- messageonlyhwndwrapper.cs
- Debug.cs
- NativeMethods.cs
- ClipboardProcessor.cs
- AssertUtility.cs
- UniqueConstraint.cs
- ITreeGenerator.cs
- XmlNamespaceMappingCollection.cs
- SelectedDatesCollection.cs
- TextContainerChangeEventArgs.cs
- HttpCachePolicyElement.cs
- ScriptComponentDescriptor.cs
- FixedDocumentSequencePaginator.cs
- XmlDocumentType.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- ToolboxCategory.cs
- LongValidator.cs
- ScrollViewerAutomationPeer.cs
- XmlChoiceIdentifierAttribute.cs
- WebBrowserPermission.cs
- FormViewUpdatedEventArgs.cs
- IndexedGlyphRun.cs
- ProgressPage.cs
- System.Data_BID.cs