Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridColumnHeaderCollection.cs
- X509CertificateTrustedIssuerElementCollection.cs
- OledbConnectionStringbuilder.cs
- OleCmdHelper.cs
- DictionaryManager.cs
- PKCS1MaskGenerationMethod.cs
- XmlArrayItemAttributes.cs
- MetafileHeaderWmf.cs
- RequestValidator.cs
- QueryAsyncResult.cs
- SoapIgnoreAttribute.cs
- WebPartHelpVerb.cs
- DocumentViewer.cs
- Timeline.cs
- ImportRequest.cs
- DoubleUtil.cs
- BuildProvider.cs
- ConfigurationStrings.cs
- TypeElementCollection.cs
- _UriSyntax.cs
- WinFormsComponentEditor.cs
- WebExceptionStatus.cs
- StoreAnnotationsMap.cs
- TextFormatter.cs
- DateTimeConstantAttribute.cs
- NonParentingControl.cs
- ReflectionTypeLoadException.cs
- DropShadowBitmapEffect.cs
- ContainerActivationHelper.cs
- Link.cs
- SqlFactory.cs
- EntityDataSourceStatementEditorForm.cs
- UserPreferenceChangedEventArgs.cs
- ContentElementCollection.cs
- SmiRequestExecutor.cs
- CommandBindingCollection.cs
- MatrixCamera.cs
- MarginCollapsingState.cs
- UnhandledExceptionEventArgs.cs
- NameValuePair.cs
- HMACSHA1.cs
- DataTemplate.cs
- WorkflowMarkupSerializationManager.cs
- AuthenticateEventArgs.cs
- BehaviorEditorPart.cs
- Properties.cs
- SubMenuStyleCollection.cs
- StickyNote.cs
- MetadataHelper.cs
- SubtreeProcessor.cs
- DataRow.cs
- TransactionBridge.cs
- coordinator.cs
- ToolboxBitmapAttribute.cs
- HttpCookieCollection.cs
- DBCommand.cs
- Model3D.cs
- ActivityExecutionContextCollection.cs
- PasswordBox.cs
- IsolatedStoragePermission.cs
- TreeViewCancelEvent.cs
- TemplateContent.cs
- DbConnectionStringCommon.cs
- StringCollectionMarkupSerializer.cs
- EditorPartChrome.cs
- ConfigurationElementCollection.cs
- NativeMethods.cs
- GetRecipientListRequest.cs
- ZipPackage.cs
- WindowsGraphics.cs
- OraclePermission.cs
- AudioDeviceOut.cs
- TrimSurroundingWhitespaceAttribute.cs
- SqlDependencyListener.cs
- StateRuntime.cs
- NativeCppClassAttribute.cs
- FileDialog.cs
- Compiler.cs
- CommonDialog.cs
- KnownBoxes.cs
- ControlParameter.cs
- AuthenticationServiceManager.cs
- IsolatedStoragePermission.cs
- Decorator.cs
- TransactedBatchContext.cs
- QilVisitor.cs
- OuterGlowBitmapEffect.cs
- SystemException.cs
- Clock.cs
- HandleCollector.cs
- Light.cs
- StretchValidation.cs
- TypedTableBaseExtensions.cs
- SspiSafeHandles.cs
- SimpleRecyclingCache.cs
- DataGridCellInfo.cs
- TemplateBaseAction.cs
- DataContractJsonSerializer.cs
- MenuItemStyle.cs
- EncodedStreamFactory.cs