Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / PtsHost / LineBreakRecord.cs / 1305600 / LineBreakRecord.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: LineBreakRecord // // Description: LineBreakRecord is unmanaged resouce handle to TextLineBreak // // History: // 06/07/2005 : ghermann - created // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Documents; using MS.Internal.Text; using System.Windows.Media.TextFormatting; namespace MS.Internal.PtsHost { // --------------------------------------------------------------------- // Break record for line - holds decoration information // --------------------------------------------------------------------- internal sealed class LineBreakRecord : UnmanagedHandle { // ------------------------------------------------------------------ // Constructor. // // PtsContext - Context // TextLineBreak - Contained line break // ----------------------------------------------------------------- internal LineBreakRecord(PtsContext ptsContext, TextLineBreak textLineBreak) : base(ptsContext) { _textLineBreak = textLineBreak; } ////// Dispose the line break /// public override void Dispose() { if(_textLineBreak != null) { _textLineBreak.Dispose(); } base.Dispose(); } #region Internal Methods ////// Clones the underlying TextLineBreak /// internal LineBreakRecord Clone() { return new LineBreakRecord(PtsContext, _textLineBreak.Clone()); } internal TextLineBreak TextLineBreak { get { return _textLineBreak; } } #endregion Internal Methods #region Private Fields private TextLineBreak _textLineBreak; #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
- HighlightComponent.cs
- TreeNodeStyle.cs
- LoadMessageLogger.cs
- SafePEFileHandle.cs
- LinkButton.cs
- HealthMonitoringSection.cs
- AnnouncementEndpoint.cs
- HtmlAnchor.cs
- EventlogProvider.cs
- IgnoreSection.cs
- ProfileEventArgs.cs
- AccessibilityHelperForXpWin2k3.cs
- SqlMethods.cs
- UrlMappingsModule.cs
- _CommandStream.cs
- HttpCookie.cs
- InvalidOleVariantTypeException.cs
- DataSourceView.cs
- Size3DConverter.cs
- codemethodreferenceexpression.cs
- TreeBuilder.cs
- RootProfilePropertySettingsCollection.cs
- FileController.cs
- DesignTableCollection.cs
- SharedUtils.cs
- RequiredFieldValidator.cs
- SessionStateItemCollection.cs
- ReadOnlyNameValueCollection.cs
- BmpBitmapDecoder.cs
- MergablePropertyAttribute.cs
- ChangeDirector.cs
- OleDbInfoMessageEvent.cs
- SiteMapHierarchicalDataSourceView.cs
- OdbcError.cs
- SchemaImporter.cs
- ExtentKey.cs
- TypeDescriptionProviderAttribute.cs
- LoginDesignerUtil.cs
- WebEventCodes.cs
- StyleModeStack.cs
- PageSetupDialog.cs
- AliasGenerator.cs
- LinkedResourceCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TypeInformation.cs
- SqlAliasesReferenced.cs
- ServicePoint.cs
- _AcceptOverlappedAsyncResult.cs
- SqlUnionizer.cs
- TypeKeyValue.cs
- ReadOnlyHierarchicalDataSource.cs
- PropertyPushdownHelper.cs
- Pair.cs
- DataBoundControl.cs
- InternalConfigEventArgs.cs
- TextTreeText.cs
- RequestNavigateEventArgs.cs
- XmlSchemaType.cs
- CalculatedColumn.cs
- userdatakeys.cs
- DataGridItemCollection.cs
- PointLightBase.cs
- Converter.cs
- XmlILAnnotation.cs
- XmlElement.cs
- PageParser.cs
- Message.cs
- infer.cs
- ListItemParagraph.cs
- MergeFailedEvent.cs
- XmlDigitalSignatureProcessor.cs
- BaseDataBoundControl.cs
- DataGridViewAutoSizeModeEventArgs.cs
- EditorPartDesigner.cs
- SettingsProperty.cs
- DynamicField.cs
- KnownTypesHelper.cs
- Walker.cs
- unsafenativemethodsother.cs
- TableColumn.cs
- FormsAuthenticationConfiguration.cs
- QueryContinueDragEvent.cs
- PeerResolverBindingElement.cs
- DataControlExtensions.cs
- ViewDesigner.cs
- SqlDataSourceConfigureSelectPanel.cs
- CodeDelegateInvokeExpression.cs
- DataDocumentXPathNavigator.cs
- StorageAssociationTypeMapping.cs
- Parsers.cs
- GeneratedContractType.cs
- PermissionSetTriple.cs
- ComEventsInfo.cs
- HtmlGenericControl.cs
- CapacityStreamGeometryContext.cs
- StreamInfo.cs
- MenuAutomationPeer.cs
- ParameterBuilder.cs
- UtilityExtension.cs
- Timer.cs