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
- VerticalAlignConverter.cs
- ToolStripMenuItem.cs
- BrushConverter.cs
- Primitive.cs
- HttpCookie.cs
- ToolStripItemGlyph.cs
- ManagementOptions.cs
- TabControl.cs
- DataGridColumn.cs
- CodeSnippetTypeMember.cs
- OdbcPermission.cs
- FloatMinMaxAggregationOperator.cs
- SplitterCancelEvent.cs
- MonitoringDescriptionAttribute.cs
- ConfigXmlText.cs
- PolyQuadraticBezierSegment.cs
- StyleBamlRecordReader.cs
- SqlTypesSchemaImporter.cs
- ZipIOExtraFieldPaddingElement.cs
- XmlChildEnumerator.cs
- BlurBitmapEffect.cs
- NamespaceMapping.cs
- DesignerForm.cs
- PersonalizationStateQuery.cs
- TransformerInfo.cs
- TreeViewTemplateSelector.cs
- WindowsPrincipal.cs
- WebBaseEventKeyComparer.cs
- ActiveXHost.cs
- DesignerActionPanel.cs
- ConditionalAttribute.cs
- HandlerFactoryCache.cs
- ChannelSinkStacks.cs
- CreatingCookieEventArgs.cs
- PropertyDescriptorCollection.cs
- EndpointDiscoveryBehavior.cs
- LogicalExpressionTypeConverter.cs
- XmlSequenceWriter.cs
- ToolStripComboBox.cs
- MemberAssignment.cs
- WorkflowMessageEventArgs.cs
- FontDifferentiator.cs
- GroupStyle.cs
- TraceSource.cs
- UnmanagedHandle.cs
- VideoDrawing.cs
- InstanceOwnerQueryResult.cs
- OleDbPropertySetGuid.cs
- Cursor.cs
- HeaderedContentControl.cs
- SoapAttributeAttribute.cs
- HashSetEqualityComparer.cs
- HyperLinkField.cs
- NativeRightsManagementAPIsStructures.cs
- EntityTransaction.cs
- WmlPageAdapter.cs
- BCLDebug.cs
- XpsFilter.cs
- ButtonChrome.cs
- TeredoHelper.cs
- ClaimSet.cs
- EncryptedReference.cs
- DoubleAnimation.cs
- SqlCachedBuffer.cs
- IdentityManager.cs
- DragEvent.cs
- AmbientEnvironment.cs
- AutomationPeer.cs
- Vector3DCollection.cs
- EtwTrace.cs
- TableLayoutSettings.cs
- XmlBindingWorker.cs
- ComplexPropertyEntry.cs
- HttpStreamMessageEncoderFactory.cs
- WebSysDefaultValueAttribute.cs
- DocumentAutomationPeer.cs
- FolderBrowserDialog.cs
- XmlStreamNodeWriter.cs
- UnsafeNativeMethods.cs
- WindowsTokenRoleProvider.cs
- PersonalizationProvider.cs
- BrowserCapabilitiesCompiler.cs
- OleDbError.cs
- ToolTipAutomationPeer.cs
- GridItem.cs
- XPathNodeList.cs
- NativeMethods.cs
- DataPagerFieldCommandEventArgs.cs
- PDBReader.cs
- XmlLanguageConverter.cs
- FontStyle.cs
- StringToken.cs
- TemplatedWizardStep.cs
- ClientScriptManagerWrapper.cs
- WorkflowServiceNamespace.cs
- SizeIndependentAnimationStorage.cs
- GeometryGroup.cs
- RequestCacheManager.cs
- StrongName.cs
- TextEditorCopyPaste.cs