Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / TextDecoration.cs / 1305600 / TextDecoration.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: TextDecoration class // // History: // 10/14/2004: Garyyang Created the file // //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; namespace System.Windows { ////// A text decoration /// [Localizability(LocalizationCategory.None)] public sealed partial class TextDecoration : Animatable { ////// Constructor /// public TextDecoration() { } ////// Constructor /// /// The location of the text decoration /// The pen used to draw this text decoration /// The offset of this text decoration to the location /// The unit of the offset /// The unit of the thickness of the pen public TextDecoration( TextDecorationLocation location, Pen pen, double penOffset, TextDecorationUnit penOffsetUnit, TextDecorationUnit penThicknessUnit ) { Location = location; Pen = pen; PenOffset = penOffset; PenOffsetUnit = penOffsetUnit; PenThicknessUnit = penThicknessUnit; } ////// Compare the values of thhe properties in the two TextDecoration objects /// /// The TextDecoration object to be compared against ///True if their property values are equal. False otherwise ////// The method doesn't check "full" equality as it can not take into account of all the possible /// values associated with the DependencyObject,such as Animation, DataBinding and Attached property. /// It only compares the public properties to serve the specific Framework's needs in inline property /// management and Editing serialization. /// internal bool ValueEquals(TextDecoration textDecoration) { if (textDecoration == null) return false; // o is either null or not a TextDecoration object. if (this == textDecoration) return true; // reference equality. return ( Location == textDecoration.Location && PenOffset == textDecoration.PenOffset && PenOffsetUnit == textDecoration.PenOffsetUnit && PenThicknessUnit == textDecoration.PenThicknessUnit && (Pen == null ? textDecoration.Pen == null : Pen.Equals( textDecoration.Pen)) ); } } } // 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
- SoapIncludeAttribute.cs
- ListBoxChrome.cs
- UnsafeNativeMethods.cs
- Primitive.cs
- SoapAttributeAttribute.cs
- BamlLocalizabilityResolver.cs
- TypeToken.cs
- FunctionImportMapping.cs
- TableStyle.cs
- DataServiceQueryOfT.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- MetadataArtifactLoader.cs
- BehaviorService.cs
- AppSettingsExpressionBuilder.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- TableLayoutSettingsTypeConverter.cs
- ConnectionPointCookie.cs
- PrintEvent.cs
- TaskHelper.cs
- QilInvokeLateBound.cs
- LineSegment.cs
- DataBinder.cs
- TextBox.cs
- Unit.cs
- MediaScriptCommandRoutedEventArgs.cs
- XamlWriterExtensions.cs
- RegisterResponseInfo.cs
- ColorConvertedBitmap.cs
- RegexCompilationInfo.cs
- OleDbInfoMessageEvent.cs
- ZipPackagePart.cs
- CombinedGeometry.cs
- StringDictionary.cs
- SelectedDatesCollection.cs
- thaishape.cs
- StatusBar.cs
- Char.cs
- StructuralType.cs
- WebPartRestoreVerb.cs
- TargetConverter.cs
- HMACRIPEMD160.cs
- HandledMouseEvent.cs
- EntityTransaction.cs
- FormatterServices.cs
- WebPartVerbCollection.cs
- Soap11ServerProtocol.cs
- Span.cs
- RuntimeEnvironment.cs
- FormViewRow.cs
- NumberFunctions.cs
- EntityReference.cs
- MsmqAppDomainProtocolHandler.cs
- VisualTarget.cs
- RelatedImageListAttribute.cs
- mongolianshape.cs
- TypeDescriptionProviderAttribute.cs
- LineBreakRecord.cs
- DriveInfo.cs
- PolicyUnit.cs
- Errors.cs
- TextMetrics.cs
- StructuralObject.cs
- QueryExecutionOption.cs
- DrawingContextWalker.cs
- DictionaryBase.cs
- EtwTrace.cs
- EmissiveMaterial.cs
- HandlerBase.cs
- TemplateBindingExtensionConverter.cs
- Clock.cs
- Soap12ProtocolImporter.cs
- SafeViewOfFileHandle.cs
- UriScheme.cs
- PropertyTab.cs
- wgx_render.cs
- XmlILConstructAnalyzer.cs
- KeyValuePair.cs
- XmlSchemaObjectTable.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- DataGridClipboardHelper.cs
- ProfileSettingsCollection.cs
- ItemCollection.cs
- MasterPageCodeDomTreeGenerator.cs
- StateWorkerRequest.cs
- ExceptionHelpers.cs
- EnumerableCollectionView.cs
- mediaclock.cs
- odbcmetadatacollectionnames.cs
- ComplexObject.cs
- MenuStrip.cs
- COM2ICategorizePropertiesHandler.cs
- PersonalizationStateQuery.cs
- DbMetaDataColumnNames.cs
- Path.cs
- EntityWrapperFactory.cs
- RelationshipManager.cs
- ProcessThread.cs
- AnnotationComponentChooser.cs
- InfocardExtendedInformationCollection.cs
- IArgumentProvider.cs