Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / MS / Internal / PtsHost / LineBreakRecord.cs / 1 / LineBreakRecord.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: LineBreakRecord // // Description: LineBreakRecord is unmanaged resouce handle to TextLineBreak // // History: // 06/07/2005 : [....] - 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
- XmlDataSource.cs
- WebFormsRootDesigner.cs
- DockPanel.cs
- ScrollBarAutomationPeer.cs
- TextSelectionHelper.cs
- XPathDocumentNavigator.cs
- AutoGeneratedFieldProperties.cs
- TreeNodeClickEventArgs.cs
- PhonemeEventArgs.cs
- TdsValueSetter.cs
- OdbcCommand.cs
- PriorityBinding.cs
- Visual3D.cs
- DoWorkEventArgs.cs
- WindowClosedEventArgs.cs
- TraceHwndHost.cs
- MergeFailedEvent.cs
- Focus.cs
- FormViewAutoFormat.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- ConstraintConverter.cs
- NullEntityWrapper.cs
- WebScriptClientGenerator.cs
- SymLanguageType.cs
- PageCache.cs
- diagnosticsswitches.cs
- TableStyle.cs
- FixedSOMTextRun.cs
- CachedFontFace.cs
- Point.cs
- XmlElement.cs
- RuntimeEnvironment.cs
- ConfigurationPropertyAttribute.cs
- Wildcard.cs
- WsdlInspector.cs
- ComponentCollection.cs
- UnauthorizedWebPart.cs
- WebBrowserPermission.cs
- TopClause.cs
- DataSourceHelper.cs
- UmAlQuraCalendar.cs
- EntityContainer.cs
- EntityViewContainer.cs
- AspProxy.cs
- InputLanguageSource.cs
- InstanceCreationEditor.cs
- DeleteHelper.cs
- WebPartDescriptionCollection.cs
- ConfigurationSection.cs
- CatchDesigner.xaml.cs
- HttpGetProtocolReflector.cs
- TreeNodeClickEventArgs.cs
- basevalidator.cs
- NullableIntMinMaxAggregationOperator.cs
- GridViewDesigner.cs
- TableLayoutRowStyleCollection.cs
- FunctionNode.cs
- PersonalizationStateInfo.cs
- DataGridLengthConverter.cs
- LassoHelper.cs
- DesignerDataConnection.cs
- ContainerCodeDomSerializer.cs
- TextEffectCollection.cs
- TransactionFilter.cs
- SoapReflectionImporter.cs
- SocketPermission.cs
- TypeToken.cs
- DynamicControl.cs
- ObjectQuery_EntitySqlExtensions.cs
- BufferModesCollection.cs
- XmlProcessingInstruction.cs
- PEFileEvidenceFactory.cs
- TypedAsyncResult.cs
- AccessText.cs
- EdmProperty.cs
- PassportPrincipal.cs
- SmtpAuthenticationManager.cs
- SessionEndingCancelEventArgs.cs
- ComboBox.cs
- BitmapEffectDrawingContent.cs
- keycontainerpermission.cs
- DocumentsTrace.cs
- TypeElement.cs
- HwndSubclass.cs
- dbenumerator.cs
- AutoScrollExpandMessageFilter.cs
- WindowsToolbarAsMenu.cs
- ParameterToken.cs
- GridPattern.cs
- User.cs
- DataChangedEventManager.cs
- ProcessThread.cs
- MenuItemBinding.cs
- FixedDocumentSequencePaginator.cs
- OleDbSchemaGuid.cs
- BitmapInitialize.cs
- ToolbarAUtomationPeer.cs
- StorageEntityTypeMapping.cs
- TextParaClient.cs
- FigureParagraph.cs