Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / 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 : 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. //---------------------------------------------------------------------------- // // 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
- SmtpFailedRecipientException.cs
- EventLogPermissionAttribute.cs
- SeekableReadStream.cs
- altserialization.cs
- BmpBitmapDecoder.cs
- SetterTriggerConditionValueConverter.cs
- Debug.cs
- DataGridViewImageColumn.cs
- MouseCaptureWithinProperty.cs
- RadioButtonStandardAdapter.cs
- DiscoveryDocument.cs
- SatelliteContractVersionAttribute.cs
- XMLSchema.cs
- ConnectionStringSettingsCollection.cs
- NamedPipeChannelListener.cs
- JpegBitmapEncoder.cs
- HuffCodec.cs
- AppLevelCompilationSectionCache.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- Binding.cs
- RawUIStateInputReport.cs
- ObjectPropertyMapping.cs
- WarningException.cs
- backend.cs
- CaseStatementSlot.cs
- ModulesEntry.cs
- DrawItemEvent.cs
- RootProfilePropertySettingsCollection.cs
- DateTimeParse.cs
- ProtectedConfiguration.cs
- ArrayTypeMismatchException.cs
- ScrollItemProviderWrapper.cs
- PrimaryKeyTypeConverter.cs
- CacheDependency.cs
- AdapterSwitches.cs
- UTF32Encoding.cs
- LicenseProviderAttribute.cs
- HtmlTableRowCollection.cs
- LicFileLicenseProvider.cs
- HtmlInputSubmit.cs
- XmlSerializerFactory.cs
- SecurityToken.cs
- PairComparer.cs
- EventProvider.cs
- MouseBinding.cs
- FormCollection.cs
- OdbcParameter.cs
- ListViewDeletedEventArgs.cs
- ScalarConstant.cs
- Form.cs
- oledbmetadatacollectionnames.cs
- ConditionalExpression.cs
- EditorBrowsableAttribute.cs
- Compilation.cs
- ScrollViewer.cs
- CustomBindingElementCollection.cs
- VirtualizedItemProviderWrapper.cs
- CompilerResults.cs
- SecurityRuntime.cs
- ResourceManagerWrapper.cs
- ArrayHelper.cs
- ToolStripOverflow.cs
- NumberSubstitution.cs
- HTMLTextWriter.cs
- DockAndAnchorLayout.cs
- GenericEnumConverter.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- TreeView.cs
- SoapHeaderException.cs
- NativeMethods.cs
- ActivityContext.cs
- BulletedListEventArgs.cs
- QueryLifecycle.cs
- BamlLocalizabilityResolver.cs
- AppDomainAttributes.cs
- SerializationHelper.cs
- HTTPNotFoundHandler.cs
- CompilationRelaxations.cs
- PropertiesTab.cs
- SectionInput.cs
- ConfigurationLoaderException.cs
- ZipIOLocalFileHeader.cs
- CaseInsensitiveHashCodeProvider.cs
- WebBrowserNavigatedEventHandler.cs
- RadioButtonList.cs
- Merger.cs
- StackOverflowException.cs
- SafeRightsManagementQueryHandle.cs
- GroupBox.cs
- List.cs
- GenericRootAutomationPeer.cs
- PartialCachingControl.cs
- FrugalList.cs
- XmlToDatasetMap.cs
- TreeIterators.cs
- StrongName.cs
- ScriptComponentDescriptor.cs
- Int32CAMarshaler.cs
- EmptyQuery.cs
- CompilerResults.cs