Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- CopyAction.cs
- MinimizableAttributeTypeConverter.cs
- EndpointBehaviorElement.cs
- DocumentDesigner.cs
- HttpListenerResponse.cs
- ObjectIDGenerator.cs
- ExceptionTrace.cs
- OrderingExpression.cs
- ToolStripProgressBar.cs
- DataGridColumnCollection.cs
- MobileRedirect.cs
- WindowsIPAddress.cs
- EdmItemError.cs
- ServerValidateEventArgs.cs
- VariableAction.cs
- Sql8ConformanceChecker.cs
- Point3DConverter.cs
- GenericWebPart.cs
- ActivityExecutor.cs
- WindowAutomationPeer.cs
- XmlSchemaObject.cs
- DataGridViewCellFormattingEventArgs.cs
- TextAnchor.cs
- DesignBinding.cs
- Console.cs
- AnimationStorage.cs
- MarkupCompilePass1.cs
- TextParaClient.cs
- MetabaseServerConfig.cs
- Drawing.cs
- QilStrConcat.cs
- AsmxEndpointPickerExtension.cs
- ObjectDisposedException.cs
- MetadataPropertyCollection.cs
- PersonalizablePropertyEntry.cs
- HwndSourceKeyboardInputSite.cs
- Utils.cs
- PartialList.cs
- VirtualDirectoryMapping.cs
- XmlQueryContext.cs
- CodeTypeMemberCollection.cs
- __TransparentProxy.cs
- SortedSetDebugView.cs
- SqlConnectionManager.cs
- AddInDeploymentState.cs
- QueryMath.cs
- indexingfiltermarshaler.cs
- CodeComment.cs
- isolationinterop.cs
- sqlstateclientmanager.cs
- ObjectNotFoundException.cs
- WebPartActionVerb.cs
- LayoutUtils.cs
- WorkflowShape.cs
- ToolStripItemDesigner.cs
- DropTarget.cs
- Int64Converter.cs
- BindValidationContext.cs
- TextClipboardData.cs
- Assign.cs
- HotSpot.cs
- XsltFunctions.cs
- UnsafeNativeMethods.cs
- DBPropSet.cs
- SessionStateSection.cs
- DnsPermission.cs
- MenuCommand.cs
- ExpressionPrinter.cs
- WebPartDisplayModeEventArgs.cs
- EmptyEnumerable.cs
- RandomNumberGenerator.cs
- LogicalExpr.cs
- FragmentNavigationEventArgs.cs
- SpotLight.cs
- AmbientProperties.cs
- ContainerFilterService.cs
- CookieHandler.cs
- Command.cs
- MaterialGroup.cs
- EventLogger.cs
- TextRunTypographyProperties.cs
- InitializationEventAttribute.cs
- objectquery_tresulttype.cs
- DynamicRendererThreadManager.cs
- SQLString.cs
- ObjectQuery_EntitySqlExtensions.cs
- NegotiateStream.cs
- CharacterMetricsDictionary.cs
- InvalidProgramException.cs
- SplitterEvent.cs
- FunctionImportMapping.cs
- RawMouseInputReport.cs
- NameTable.cs
- EnlistmentTraceIdentifier.cs
- CssStyleCollection.cs
- AnnotationObservableCollection.cs
- HatchBrush.cs
- _DomainName.cs
- InputLanguageEventArgs.cs
- ImageBrush.cs