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
- UInt64Storage.cs
- TextTreePropertyUndoUnit.cs
- IdentifierService.cs
- TextRangeSerialization.cs
- RawStylusSystemGestureInputReport.cs
- MultilineStringConverter.cs
- Oci.cs
- PageAsyncTask.cs
- SqlBulkCopyColumnMappingCollection.cs
- DataGridViewCheckBoxCell.cs
- UnmanagedHandle.cs
- MessagePropertyVariants.cs
- TextSelectionProcessor.cs
- CodeRegionDirective.cs
- xmlglyphRunInfo.cs
- ActiveXHelper.cs
- Margins.cs
- CodeAttachEventStatement.cs
- XPathExpr.cs
- UTF32Encoding.cs
- SimpleMailWebEventProvider.cs
- InputScopeAttribute.cs
- EntityModelSchemaGenerator.cs
- DataGridClipboardHelper.cs
- ContextMenuStrip.cs
- RequestCacheValidator.cs
- InvalidEnumArgumentException.cs
- HtmlTextArea.cs
- PolyBezierSegmentFigureLogic.cs
- XmlSignatureManifest.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- NumericUpDown.cs
- DocumentPageViewAutomationPeer.cs
- Renderer.cs
- DelegatingConfigHost.cs
- Empty.cs
- FrameworkRichTextComposition.cs
- KeyedCollection.cs
- TextElementEditingBehaviorAttribute.cs
- AccessDataSource.cs
- DataGridViewSortCompareEventArgs.cs
- StrokeNodeOperations2.cs
- MarshalDirectiveException.cs
- Style.cs
- PassportAuthentication.cs
- TemplateBaseAction.cs
- IfAction.cs
- DataServiceClientException.cs
- PtsPage.cs
- FixedPage.cs
- ProxyAttribute.cs
- NavigationProgressEventArgs.cs
- WindowsProgressbar.cs
- TaskHelper.cs
- HtmlEncodedRawTextWriter.cs
- SymbolPair.cs
- WebBrowserUriTypeConverter.cs
- HwndSourceKeyboardInputSite.cs
- UInt16Storage.cs
- unsafenativemethodstextservices.cs
- ByteStream.cs
- AsyncOperationManager.cs
- MediaSystem.cs
- WsdlWriter.cs
- OracleTransaction.cs
- DataPointer.cs
- UnauthorizedAccessException.cs
- SapiRecoContext.cs
- ItemsControlAutomationPeer.cs
- Timeline.cs
- ProfileInfo.cs
- DataBindingCollection.cs
- ObjectIDGenerator.cs
- IssuanceLicense.cs
- RelatedCurrencyManager.cs
- DispatcherObject.cs
- TextBoxBase.cs
- DataStorage.cs
- CheckPair.cs
- ExtendedPropertyInfo.cs
- Char.cs
- FixedElement.cs
- ToolStripItemGlyph.cs
- HttpContextServiceHost.cs
- LazyTextWriterCreator.cs
- LocalizableResourceBuilder.cs
- CompressedStack.cs
- BitStream.cs
- MemberInfoSerializationHolder.cs
- SoapRpcServiceAttribute.cs
- CategoryNameCollection.cs
- DecimalAnimationUsingKeyFrames.cs
- RenameRuleObjectDialog.cs
- WebPartsPersonalization.cs
- DataGridLinkButton.cs
- _CommandStream.cs
- XmlSchemaInfo.cs
- BitmapEffectInputData.cs
- MailWebEventProvider.cs
- ViewKeyConstraint.cs