Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- BackoffTimeoutHelper.cs
- TextDpi.cs
- XmlBinaryReader.cs
- HwndProxyElementProvider.cs
- UdpDiscoveryEndpointElement.cs
- SafeNativeMethods.cs
- ParamArrayAttribute.cs
- LateBoundBitmapDecoder.cs
- AlignmentYValidation.cs
- ImageFormatConverter.cs
- BamlRecordWriter.cs
- RootNamespaceAttribute.cs
- TextTreeTextElementNode.cs
- WpfKnownTypeInvoker.cs
- SchemaDeclBase.cs
- DefaultWorkflowSchedulerService.cs
- ComponentChangingEvent.cs
- QilXmlWriter.cs
- ConsoleKeyInfo.cs
- BuildDependencySet.cs
- DbDataRecord.cs
- Cloud.cs
- TraceUtility.cs
- MatrixUtil.cs
- _MultipleConnectAsync.cs
- EntryPointNotFoundException.cs
- SRef.cs
- EnvelopedPkcs7.cs
- UpDownBaseDesigner.cs
- srgsitem.cs
- ProxyFragment.cs
- Zone.cs
- SystemSounds.cs
- DataGridViewColumnDesigner.cs
- LinkLabelLinkClickedEvent.cs
- UrlAuthorizationModule.cs
- SiteMapProvider.cs
- KeyMatchBuilder.cs
- StateMachineDesignerPaint.cs
- Privilege.cs
- CodeObject.cs
- TypeConverterAttribute.cs
- WebColorConverter.cs
- FilterElement.cs
- GridViewPageEventArgs.cs
- WeakHashtable.cs
- WorkflowFileItem.cs
- InfoCardMetadataExchangeClient.cs
- RawStylusInputCustomData.cs
- TdsEnums.cs
- InternalBufferOverflowException.cs
- Typeface.cs
- RegexGroup.cs
- SortDescription.cs
- Baml6Assembly.cs
- ClientApiGenerator.cs
- AttachedPropertyBrowsableAttribute.cs
- MemberAccessException.cs
- CodeSubDirectoriesCollection.cs
- columnmapfactory.cs
- StringValidatorAttribute.cs
- AttributeQuery.cs
- KeyValuePair.cs
- TemplateBindingExpressionConverter.cs
- ScriptingWebServicesSectionGroup.cs
- propertytag.cs
- AmbientProperties.cs
- DataSet.cs
- tibetanshape.cs
- SignerInfo.cs
- SqlDataSourceConfigureSelectPanel.cs
- RequiredAttributeAttribute.cs
- GenericEnumerator.cs
- ScrollPatternIdentifiers.cs
- SqlCacheDependencyDatabaseCollection.cs
- StorageScalarPropertyMapping.cs
- ArraySet.cs
- Page.cs
- FlowDocumentPage.cs
- GuidTagList.cs
- SmtpReplyReader.cs
- AvtEvent.cs
- ListInitExpression.cs
- DataBoundControl.cs
- EditorOptionAttribute.cs
- NamespaceInfo.cs
- NamespaceList.cs
- WriterOutput.cs
- DesignerDataSchemaClass.cs
- SimpleRecyclingCache.cs
- FactoryId.cs
- HandledMouseEvent.cs
- SHA384.cs
- DesignerOptionService.cs
- storepermissionattribute.cs
- DisposableCollectionWrapper.cs
- ParameterCollection.cs
- ScaleTransform3D.cs
- WS2007HttpBindingElement.cs