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
- BitmapCodecInfoInternal.cs
- DrawingGroupDrawingContext.cs
- FontUnitConverter.cs
- ColumnMapCopier.cs
- WebPartEditorApplyVerb.cs
- ListViewItemCollectionEditor.cs
- InputReportEventArgs.cs
- ObjectQueryExecutionPlan.cs
- ComponentCollection.cs
- LoginUtil.cs
- InheritedPropertyChangedEventArgs.cs
- EntityDataSourceChangedEventArgs.cs
- QilStrConcat.cs
- BindingExpressionUncommonField.cs
- IItemProperties.cs
- RequestUriProcessor.cs
- PositiveTimeSpanValidator.cs
- ContextMenuStripGroupCollection.cs
- SectionUpdates.cs
- XmlHierarchicalEnumerable.cs
- WizardForm.cs
- DragDeltaEventArgs.cs
- RepeaterCommandEventArgs.cs
- FloaterBaseParaClient.cs
- ControlAdapter.cs
- UrlUtility.cs
- EncryptedPackage.cs
- JavaScriptString.cs
- OutOfMemoryException.cs
- XMLUtil.cs
- FormViewInsertEventArgs.cs
- HtmlControlPersistable.cs
- EnvelopedPkcs7.cs
- Pair.cs
- LinearQuaternionKeyFrame.cs
- CodeTryCatchFinallyStatement.cs
- TreeNodeSelectionProcessor.cs
- XmlElementAttributes.cs
- SapiInterop.cs
- NeutralResourcesLanguageAttribute.cs
- RootProfilePropertySettingsCollection.cs
- CatalogZoneAutoFormat.cs
- UserControlAutomationPeer.cs
- SafePEFileHandle.cs
- DataStorage.cs
- MetadataArtifactLoaderResource.cs
- ScriptingSectionGroup.cs
- IndentedTextWriter.cs
- ByteAnimation.cs
- XdrBuilder.cs
- AutomationProperties.cs
- PointCollectionConverter.cs
- ToolStripItemRenderEventArgs.cs
- WindowsListViewScroll.cs
- TdsRecordBufferSetter.cs
- Link.cs
- TextCompositionManager.cs
- RoleService.cs
- SplitContainer.cs
- XmlEnumAttribute.cs
- FactoryId.cs
- EventSourceCreationData.cs
- SqlLiftIndependentRowExpressions.cs
- Paragraph.cs
- _Semaphore.cs
- Thumb.cs
- TimelineGroup.cs
- CollectionExtensions.cs
- SqlVersion.cs
- Encoding.cs
- TypeGeneratedEventArgs.cs
- ResponseStream.cs
- DeferredTextReference.cs
- safesecurityhelperavalon.cs
- InOutArgumentConverter.cs
- SqlFunctions.cs
- ReflectionUtil.cs
- DescendantQuery.cs
- CodeSnippetExpression.cs
- PeerNameRecordCollection.cs
- ColumnResizeAdorner.cs
- TraceListeners.cs
- DiscoveryEndpoint.cs
- NameNode.cs
- PriorityQueue.cs
- SystemIcmpV6Statistics.cs
- Comparer.cs
- HttpProcessUtility.cs
- ImageCollectionCodeDomSerializer.cs
- ISAPIApplicationHost.cs
- XomlCompilerParameters.cs
- ImageMap.cs
- SolidColorBrush.cs
- VSWCFServiceContractGenerator.cs
- SelectionItemPattern.cs
- ReadOnlyObservableCollection.cs
- StylusDevice.cs
- AppSettingsExpressionBuilder.cs
- ItemContainerGenerator.cs
- PropVariant.cs