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
- ObjectManager.cs
- BamlWriter.cs
- DataRecordInfo.cs
- SqlUserDefinedAggregateAttribute.cs
- DocumentXmlWriter.cs
- SizeAnimationClockResource.cs
- FileAuthorizationModule.cs
- SplitContainerDesigner.cs
- HtmlTable.cs
- ResourceProviderFactory.cs
- TypeSemantics.cs
- SelectionPattern.cs
- RemoteWebConfigurationHostServer.cs
- PenLineCapValidation.cs
- DotExpr.cs
- ActivationArguments.cs
- EntityKeyElement.cs
- PopupControlService.cs
- EnumUnknown.cs
- CodeDomSerializer.cs
- DispatcherTimer.cs
- SingleStorage.cs
- TransactionProtocolConverter.cs
- KeyEventArgs.cs
- ManipulationInertiaStartingEventArgs.cs
- SplineKeyFrames.cs
- MethodExpression.cs
- RequestQueue.cs
- SqlGenericUtil.cs
- ExecutedRoutedEventArgs.cs
- WebPartCancelEventArgs.cs
- _SafeNetHandles.cs
- KeyNotFoundException.cs
- EntityClassGenerator.cs
- WmlPhoneCallAdapter.cs
- DateTimeValueSerializerContext.cs
- CharConverter.cs
- HScrollBar.cs
- DesignerActionPanel.cs
- ElementHostAutomationPeer.cs
- ScrollEvent.cs
- GB18030Encoding.cs
- ValidatorCollection.cs
- FrameSecurityDescriptor.cs
- PropertyGridCommands.cs
- ScriptDescriptor.cs
- TemplatedEditableDesignerRegion.cs
- ThousandthOfEmRealPoints.cs
- XPathNodeIterator.cs
- ComponentResourceManager.cs
- ContentElement.cs
- UInt32.cs
- UrlPath.cs
- DataSourceDescriptorCollection.cs
- ByteArrayHelperWithString.cs
- ValidationError.cs
- RadialGradientBrush.cs
- DataControlButton.cs
- CategoryValueConverter.cs
- Item.cs
- SoapMessage.cs
- RewritingProcessor.cs
- CustomTypeDescriptor.cs
- DbProviderServices.cs
- PassportAuthentication.cs
- NullableBoolConverter.cs
- UTF7Encoding.cs
- BitmapEffectDrawingContent.cs
- SqlWorkflowInstanceStoreLock.cs
- XmlLanguage.cs
- SortQuery.cs
- SchemaElement.cs
- _NativeSSPI.cs
- DataGridViewRowsAddedEventArgs.cs
- ServiceOperationWrapper.cs
- TypeNameConverter.cs
- DataGridViewComboBoxColumn.cs
- DBPropSet.cs
- EnumerableCollectionView.cs
- InvokeAction.cs
- MemberHolder.cs
- DocumentReferenceCollection.cs
- IERequestCache.cs
- HtmlHead.cs
- Validator.cs
- Delegate.cs
- SchemaLookupTable.cs
- StorageMappingFragment.cs
- File.cs
- WebPartsSection.cs
- Quad.cs
- FormViewRow.cs
- ToolboxComponentsCreatingEventArgs.cs
- NominalTypeEliminator.cs
- HwndSourceParameters.cs
- Font.cs
- PolicyStatement.cs
- DataBoundControlAdapter.cs
- DataGridViewColumnConverter.cs
- SystemGatewayIPAddressInformation.cs