Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / FixedPosition.cs / 1305600 / FixedPosition.cs
//---------------------------------------------------------------------------- //// Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // // Description: // FixedPosition represents a hit-testable position in a fixed document's tree. // // History: // 11/19/2004 - Zhenbin Xu (ZhenbinX) - Created. // //--------------------------------------------------------------------------- namespace System.Windows.Documents { using MS.Internal.Documents; using System; using System.Collections; using System.Diagnostics; using System.Globalization; //===================================================================== ////// FixedPosition represents a hit-testable position in a fixed document's tree. /// internal struct FixedPosition { //------------------------------------------------------------------- // // Connstructors // //---------------------------------------------------------------------- #region Constructors internal FixedPosition(FixedNode fixedNode, int offset) { _fixedNode = fixedNode; _offset = offset; } #endregion Constructors //------------------------------------------------------------------- // // Public Methods // //---------------------------------------------------------------------- #if DEBUG ////// Create a string representation of this object /// ///string - A string representation of this object public override string ToString() { return String.Format(CultureInfo.InvariantCulture, "FN[{0}]-Offset[{1}]", _fixedNode.ToString(), _offset); } #endif //-------------------------------------------------------------------- // // Public Properties // //--------------------------------------------------------------------- //-------------------------------------------------------------------- // // Public Events // //--------------------------------------------------------------------- //------------------------------------------------------------------- // // Internal Methods // //--------------------------------------------------------------------- //-------------------------------------------------------------------- // // Internal Properties // //--------------------------------------------------------------------- #region Internal Properties // internal int Page { get { return _fixedNode.Page; } } // internal FixedNode Node { get { return _fixedNode; } } internal int Offset { get { return _offset; } } #endregion Internal Properties //-------------------------------------------------------------------- // // Private Methods // //---------------------------------------------------------------------- #region Private Properties #endregion Private Properties //------------------------------------------------------------------- // // Private Fields // //---------------------------------------------------------------------- #region Private Fields private readonly FixedNode _fixedNode; private readonly int _offset; // offset into the fixed node #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
- AssemblyEvidenceFactory.cs
- EventsTab.cs
- LoginCancelEventArgs.cs
- SQLString.cs
- AssemblyBuilder.cs
- InternalControlCollection.cs
- BitmapMetadata.cs
- XmlSchemaComplexContentExtension.cs
- WorkflowInvoker.cs
- RuleSetReference.cs
- ArithmeticException.cs
- TrackingProfile.cs
- ScriptServiceAttribute.cs
- SimpleExpression.cs
- XmlReflectionImporter.cs
- ChameleonKey.cs
- EntityCommandCompilationException.cs
- SystemWebExtensionsSectionGroup.cs
- EntityDataSourceSelectingEventArgs.cs
- PointAnimationClockResource.cs
- HttpResponse.cs
- ViewGenerator.cs
- TabRenderer.cs
- IssuanceLicense.cs
- SqlHelper.cs
- OdbcHandle.cs
- SuppressIldasmAttribute.cs
- FormsAuthenticationUser.cs
- FixUpCollection.cs
- ReferenceSchema.cs
- TabItemAutomationPeer.cs
- MatrixCamera.cs
- LogWriteRestartAreaAsyncResult.cs
- ExpressionConverter.cs
- ImplicitInputBrush.cs
- AesCryptoServiceProvider.cs
- SQLResource.cs
- Margins.cs
- ControlPropertyNameConverter.cs
- ButtonBaseAutomationPeer.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- DurableInstancingOptions.cs
- TableLayoutStyle.cs
- UrlEncodedParameterWriter.cs
- BitmapCodecInfoInternal.cs
- X509Certificate2.cs
- FormViewDeletedEventArgs.cs
- NameTable.cs
- Point3DValueSerializer.cs
- HtmlElementEventArgs.cs
- Int64AnimationBase.cs
- FilteredReadOnlyMetadataCollection.cs
- UniqueIdentifierService.cs
- OleDbCommandBuilder.cs
- __Filters.cs
- sqlstateclientmanager.cs
- XhtmlBasicObjectListAdapter.cs
- TextRunTypographyProperties.cs
- PropertyBuilder.cs
- WebCategoryAttribute.cs
- SafeHandle.cs
- MemoryMappedViewAccessor.cs
- PerformanceCounterManager.cs
- HtmlInputRadioButton.cs
- DockPatternIdentifiers.cs
- EncodingTable.cs
- RuleSettingsCollection.cs
- ThemeableAttribute.cs
- WhitespaceRule.cs
- DefaultWorkflowTransactionService.cs
- MouseGestureValueSerializer.cs
- CompositeScriptReferenceEventArgs.cs
- OutputCacheProfile.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- MarkupObject.cs
- IndexerNameAttribute.cs
- SettingsPropertyCollection.cs
- GroupQuery.cs
- BuildProvider.cs
- XmlName.cs
- MatrixTransform.cs
- RuleInfoComparer.cs
- GestureRecognizer.cs
- DateTimeConstantAttribute.cs
- ConfigXmlReader.cs
- ReverseInheritProperty.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- ExpressionNode.cs
- ClientScriptManager.cs
- WindowsAltTab.cs
- UriScheme.cs
- TextOnlyOutput.cs
- EmptyEnumerable.cs
- DataViewManagerListItemTypeDescriptor.cs
- PartialCachingControl.cs
- HtmlSelectionListAdapter.cs
- TextTreeDeleteContentUndoUnit.cs
- SqlAliaser.cs
- StateWorkerRequest.cs
- DataGridRow.cs