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
- ParentUndoUnit.cs
- WebPartActionVerb.cs
- PrintingPermissionAttribute.cs
- SQLBytes.cs
- ItemContainerProviderWrapper.cs
- PnrpPermission.cs
- CodeDOMUtility.cs
- SQLDecimalStorage.cs
- ComponentDispatcher.cs
- SapiAttributeParser.cs
- DiscriminatorMap.cs
- XmlSchemaGroupRef.cs
- HighlightVisual.cs
- TextView.cs
- VerbConverter.cs
- CqlParser.cs
- WebPartConnectionsCancelVerb.cs
- ConcurrencyBehavior.cs
- VectorAnimationUsingKeyFrames.cs
- RtType.cs
- HtmlInputHidden.cs
- PixelShader.cs
- StreamWriter.cs
- FileLevelControlBuilderAttribute.cs
- InputManager.cs
- DesignSurfaceServiceContainer.cs
- Pkcs7Recipient.cs
- SSmlParser.cs
- ProcessHostFactoryHelper.cs
- ImmComposition.cs
- ExternalDataExchangeService.cs
- AssemblyCollection.cs
- DataTemplate.cs
- GestureRecognizer.cs
- XmlDataImplementation.cs
- ObjectDisposedException.cs
- WpfKnownType.cs
- DataFieldConverter.cs
- TreeViewCancelEvent.cs
- VerticalAlignConverter.cs
- ToolStripDropDownClosingEventArgs.cs
- EntityDataSourceChangingEventArgs.cs
- IdleTimeoutMonitor.cs
- UIElement3D.cs
- DTCTransactionManager.cs
- ChildrenQuery.cs
- hresults.cs
- XmlExtensionFunction.cs
- DocumentSequence.cs
- IntegerFacetDescriptionElement.cs
- DataGridTable.cs
- XmlEncoding.cs
- _KerberosClient.cs
- InfiniteTimeSpanConverter.cs
- CodeExpressionStatement.cs
- EmptyImpersonationContext.cs
- PnrpPermission.cs
- DaylightTime.cs
- CopyAttributesAction.cs
- SpeechEvent.cs
- ImageConverter.cs
- PropertyBuilder.cs
- FolderBrowserDialog.cs
- DebugHandleTracker.cs
- elementinformation.cs
- TemplateKeyConverter.cs
- TcpSocketManager.cs
- NetworkStream.cs
- MarkupProperty.cs
- ViewUtilities.cs
- OracleRowUpdatingEventArgs.cs
- ScriptingWebServicesSectionGroup.cs
- XmlDataDocument.cs
- SchemaImporterExtension.cs
- UnaryQueryOperator.cs
- SchemaTypeEmitter.cs
- columnmapfactory.cs
- RectangleConverter.cs
- MatrixAnimationUsingKeyFrames.cs
- MulticastDelegate.cs
- CodeNamespaceImportCollection.cs
- XmlAtomicValue.cs
- CngKey.cs
- HttpConfigurationSystem.cs
- XmlWriterTraceListener.cs
- PinnedBufferMemoryStream.cs
- LookupTables.cs
- FileSystemWatcher.cs
- ReadOnlyDictionary.cs
- RelationshipFixer.cs
- GridViewUpdateEventArgs.cs
- XPathNodeIterator.cs
- DecoderFallbackWithFailureFlag.cs
- InvokePattern.cs
- SequentialWorkflowHeaderFooter.cs
- DeferredSelectedIndexReference.cs
- IsolatedStorageFileStream.cs
- RenderingEventArgs.cs
- TypeViewSchema.cs
- BlobPersonalizationState.cs