Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- QualificationDataAttribute.cs
- CodeGotoStatement.cs
- DataSysAttribute.cs
- DependencySource.cs
- DataControlHelper.cs
- KeyboardDevice.cs
- WeakEventManager.cs
- SimpleLine.cs
- HttpStaticObjectsCollectionBase.cs
- PriorityQueue.cs
- DataGridAutomationPeer.cs
- DataGridRelationshipRow.cs
- ControlEvent.cs
- WinFormsSecurity.cs
- LogLogRecord.cs
- CodeDomLoader.cs
- SqlClientFactory.cs
- Ref.cs
- DrawingGroup.cs
- SecurityDocument.cs
- TemplateControlParser.cs
- BezierSegment.cs
- DisplayInformation.cs
- DbParameterCollection.cs
- _ContextAwareResult.cs
- WebMethodAttribute.cs
- EditCommandColumn.cs
- StateMachineSubscriptionManager.cs
- VectorKeyFrameCollection.cs
- DetailsViewUpdatedEventArgs.cs
- EditorZoneAutoFormat.cs
- FormViewCommandEventArgs.cs
- HttpResponseHeader.cs
- Proxy.cs
- ApplicationServicesHostFactory.cs
- MessageTraceRecord.cs
- RightsManagementInformation.cs
- TextHintingModeValidation.cs
- MsmqIntegrationBindingCollectionElement.cs
- WebPartDisplayModeCancelEventArgs.cs
- LoginUtil.cs
- Operator.cs
- DateTimeValueSerializerContext.cs
- MediaContextNotificationWindow.cs
- XmlElementAttribute.cs
- XsltSettings.cs
- SID.cs
- TemplateInstanceAttribute.cs
- StickyNote.cs
- ListViewSelectEventArgs.cs
- SecureStringHasher.cs
- UriSection.cs
- ComponentDispatcher.cs
- Or.cs
- Message.cs
- ZipIOCentralDirectoryBlock.cs
- RowUpdatedEventArgs.cs
- WebErrorHandler.cs
- PcmConverter.cs
- WindowsTooltip.cs
- Brush.cs
- TaiwanCalendar.cs
- OdbcConnection.cs
- ImpersonationContext.cs
- MinimizableAttributeTypeConverter.cs
- DeferrableContent.cs
- HttpValueCollection.cs
- TaiwanLunisolarCalendar.cs
- RequestCacheValidator.cs
- StandardBindingElementCollection.cs
- DictionaryContent.cs
- WSTrust.cs
- EditorServiceContext.cs
- DataGridViewRowPostPaintEventArgs.cs
- MessagingDescriptionAttribute.cs
- PngBitmapEncoder.cs
- FlagsAttribute.cs
- ScriptControlManager.cs
- RegexParser.cs
- UndoEngine.cs
- DataGridViewSortCompareEventArgs.cs
- RadioButton.cs
- ProcessHostFactoryHelper.cs
- FieldNameLookup.cs
- BamlRecordReader.cs
- ScriptRef.cs
- ParserExtension.cs
- OdbcStatementHandle.cs
- smtppermission.cs
- ToolStripPanelRow.cs
- TcpStreams.cs
- ZipIOLocalFileDataDescriptor.cs
- SpAudioStreamWrapper.cs
- SessionStateUtil.cs
- DelegatingTypeDescriptionProvider.cs
- RegisteredHiddenField.cs
- _Events.cs
- FormattedText.cs
- SourceFileInfo.cs
- Root.cs