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
- WebPartVerb.cs
- TrackingParameters.cs
- arc.cs
- ReferenceEqualityComparer.cs
- ToolStripOverflow.cs
- ObjectTypeMapping.cs
- RootBrowserWindow.cs
- GlyphInfoList.cs
- FunctionParameter.cs
- SortExpressionBuilder.cs
- ClientScriptItem.cs
- PriorityBinding.cs
- DataTablePropertyDescriptor.cs
- Binding.cs
- ConfigurationStrings.cs
- Encoder.cs
- SelectedDatesCollection.cs
- PaintValueEventArgs.cs
- Vector3DKeyFrameCollection.cs
- XmlSchemaSimpleContentExtension.cs
- BooleanKeyFrameCollection.cs
- FixedDocument.cs
- XsltInput.cs
- PenLineJoinValidation.cs
- DoubleStorage.cs
- SHA256Managed.cs
- TaskCanceledException.cs
- DataServiceRequestOfT.cs
- JsonQNameDataContract.cs
- SystemException.cs
- InstanceCreationEditor.cs
- XmlSerializer.cs
- InkCanvasInnerCanvas.cs
- BindingExpressionUncommonField.cs
- Single.cs
- ListenerElementsCollection.cs
- LinqDataSourceView.cs
- SqlDataReaderSmi.cs
- StaticResourceExtension.cs
- DefaultBindingPropertyAttribute.cs
- StringConcat.cs
- GacUtil.cs
- WorkflowApplicationAbortedEventArgs.cs
- ExceptionValidationRule.cs
- SponsorHelper.cs
- TreeNodeStyleCollectionEditor.cs
- XsdSchemaFileEditor.cs
- ActivityExecutionFilter.cs
- WindowsStatic.cs
- DataViewSettingCollection.cs
- GlyphRunDrawing.cs
- ReadOnlyDataSourceView.cs
- DecimalConverter.cs
- ScriptingJsonSerializationSection.cs
- AutoGeneratedFieldProperties.cs
- AVElementHelper.cs
- XPathNodeIterator.cs
- CodeThrowExceptionStatement.cs
- IRCollection.cs
- RowsCopiedEventArgs.cs
- WebControlsSection.cs
- XmlMemberMapping.cs
- PerformanceCounterPermissionEntry.cs
- DecimalAnimationBase.cs
- HebrewNumber.cs
- SchemaImporterExtension.cs
- Pkcs7Recipient.cs
- XmlDocumentSchema.cs
- TextCompositionEventArgs.cs
- EditorOptionAttribute.cs
- ImageMetadata.cs
- EmissiveMaterial.cs
- SafeThreadHandle.cs
- ClientConfigurationHost.cs
- SendMailErrorEventArgs.cs
- RelationshipWrapper.cs
- StateChangeEvent.cs
- Debug.cs
- DatePickerDateValidationErrorEventArgs.cs
- HttpCookie.cs
- DocumentXPathNavigator.cs
- ReliableReplySessionChannel.cs
- InputBinding.cs
- SqlProcedureAttribute.cs
- StaticResourceExtension.cs
- _NativeSSPI.cs
- WindowCollection.cs
- ObjectSet.cs
- UIElementCollection.cs
- TypefaceCollection.cs
- GridViewAutomationPeer.cs
- SiteMapProvider.cs
- ComPlusServiceLoader.cs
- oledbmetadatacollectionnames.cs
- HttpWebRequestElement.cs
- EventPrivateKey.cs
- CounterSample.cs
- XamlTreeBuilderBamlRecordWriter.cs
- AspNetSynchronizationContext.cs
- AsymmetricAlgorithm.cs