Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / TextDecoration.cs / 1 / 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. //---------------------------------------------------------------------------- // //// 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
- ScriptingJsonSerializationSection.cs
- UInt16.cs
- RTLAwareMessageBox.cs
- Splitter.cs
- JoinTreeNode.cs
- Range.cs
- ViewStateException.cs
- EventLogRecord.cs
- HtmlValidationSummaryAdapter.cs
- TemplateBuilder.cs
- DataBoundControlHelper.cs
- metadatamappinghashervisitor.cs
- DrawingState.cs
- AuthorizationRuleCollection.cs
- IndicShape.cs
- SapiInterop.cs
- NetworkCredential.cs
- AccessKeyManager.cs
- SystemNetworkInterface.cs
- PropertyGroupDescription.cs
- Positioning.cs
- PersonalizationStateQuery.cs
- InvalidOperationException.cs
- AssemblyCollection.cs
- StateMachineTimers.cs
- WindowsListViewGroup.cs
- SQLByte.cs
- BrushValueSerializer.cs
- RowToFieldTransformer.cs
- DeadLetterQueue.cs
- ServiceNameCollection.cs
- StoreItemCollection.Loader.cs
- GeneratedView.cs
- ToolboxItemCollection.cs
- IntersectQueryOperator.cs
- ReflectEventDescriptor.cs
- GridViewCommandEventArgs.cs
- Attributes.cs
- DataGridViewTopLeftHeaderCell.cs
- TraceListener.cs
- KeyedCollection.cs
- VisualStyleTypesAndProperties.cs
- WebPartEventArgs.cs
- LinqDataSourceStatusEventArgs.cs
- CorrelationManager.cs
- VsPropertyGrid.cs
- CreateUserErrorEventArgs.cs
- FreezableCollection.cs
- Vector.cs
- Util.cs
- ObjectStorage.cs
- Stack.cs
- NameValuePermission.cs
- CompositeKey.cs
- Rectangle.cs
- SoapAttributes.cs
- SystemInfo.cs
- AuthenticationService.cs
- CodeLinePragma.cs
- Rotation3DAnimation.cs
- WebPartHeaderCloseVerb.cs
- X509UI.cs
- EntityStoreSchemaGenerator.cs
- OdbcConnectionString.cs
- EntityPropertyMappingAttribute.cs
- TargetException.cs
- AccessViolationException.cs
- XhtmlConformanceSection.cs
- Int32AnimationBase.cs
- SubMenuStyleCollection.cs
- mda.cs
- WpfWebRequestHelper.cs
- EncoderParameters.cs
- WindowsIPAddress.cs
- ArrayList.cs
- IdentitySection.cs
- CodePageUtils.cs
- OleCmdHelper.cs
- CodeCompileUnit.cs
- NamespaceCollection.cs
- DrawListViewItemEventArgs.cs
- WindowsGraphicsWrapper.cs
- SingleConverter.cs
- MarkupExtensionReturnTypeAttribute.cs
- XmlNamedNodeMap.cs
- HostingEnvironmentWrapper.cs
- TokenBasedSet.cs
- InternalEnumValidator.cs
- FrameworkName.cs
- EventHandlersStore.cs
- Viewport3DVisual.cs
- infer.cs
- EditorPart.cs
- SystemUdpStatistics.cs
- IntegerValidator.cs
- AstTree.cs
- EntityParameter.cs
- DependencyPropertyKind.cs
- SmuggledIUnknown.cs
- ComPlusContractBehavior.cs