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
- XmlCDATASection.cs
- LayoutEngine.cs
- DbQueryCommandTree.cs
- PaintValueEventArgs.cs
- ImageInfo.cs
- CommonDialog.cs
- XmlConvert.cs
- PropertyDescriptor.cs
- CodeMemberMethod.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- SoapCommonClasses.cs
- AttributeAction.cs
- CultureInfo.cs
- AsyncCompletedEventArgs.cs
- Array.cs
- XmlSchemaComplexContentRestriction.cs
- ConstraintManager.cs
- dsa.cs
- SafeTokenHandle.cs
- LineSegment.cs
- XmlIgnoreAttribute.cs
- OleDbWrapper.cs
- TextWriter.cs
- JsonSerializer.cs
- DateTimePicker.cs
- DataGridSortCommandEventArgs.cs
- IssuedTokenParametersEndpointAddressElement.cs
- FocusTracker.cs
- XPathDocument.cs
- XamlNamespaceHelper.cs
- BitmapCodecInfo.cs
- HttpCacheParams.cs
- Parser.cs
- VolatileResourceManager.cs
- HtmlHistory.cs
- loginstatus.cs
- If.cs
- Stroke.cs
- SpecialNameAttribute.cs
- EventLogPermission.cs
- BaseDataBoundControl.cs
- RadioButtonRenderer.cs
- TreePrinter.cs
- PostBackOptions.cs
- RegexTree.cs
- InternalPolicyElement.cs
- Rectangle.cs
- WorkflowRuntimeServiceElementCollection.cs
- ChainOfResponsibility.cs
- SqlRowUpdatedEvent.cs
- URLAttribute.cs
- Set.cs
- CodeNamespace.cs
- ApplyTemplatesAction.cs
- NonBatchDirectoryCompiler.cs
- MsmqIntegrationSecurityElement.cs
- StorageEntityTypeMapping.cs
- AttributeUsageAttribute.cs
- CaseStatementProjectedSlot.cs
- XmlIncludeAttribute.cs
- FormatVersion.cs
- NotifyInputEventArgs.cs
- RemoteWebConfigurationHost.cs
- Security.cs
- ComponentConverter.cs
- PrinterUnitConvert.cs
- Math.cs
- Pool.cs
- WizardPanel.cs
- ContextMarshalException.cs
- MethodInfo.cs
- IdnElement.cs
- WebPartDescription.cs
- InstanceView.cs
- CaseInsensitiveComparer.cs
- ItemAutomationPeer.cs
- BamlWriter.cs
- DataServiceKeyAttribute.cs
- Exceptions.cs
- StylusDownEventArgs.cs
- EllipticalNodeOperations.cs
- ConfigXmlAttribute.cs
- AssociationType.cs
- SafeSecurityHandles.cs
- ColorAnimationBase.cs
- DataPagerFieldCollection.cs
- DataControlFieldCollection.cs
- ToolZone.cs
- XPathAncestorQuery.cs
- ConfigurationValue.cs
- ReferentialConstraint.cs
- SplitContainer.cs
- CurrentChangingEventManager.cs
- SqlDataSourceFilteringEventArgs.cs
- GlobalizationSection.cs
- PrefixQName.cs
- EventlogProvider.cs
- AQNBuilder.cs
- PartBasedPackageProperties.cs
- SafeBitVector32.cs