Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1305600 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // 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
- SessionSymmetricMessageSecurityProtocolFactory.cs
- SpeechRecognizer.cs
- TagPrefixCollection.cs
- HttpCachePolicyBase.cs
- TypedTableHandler.cs
- BaseValidator.cs
- CreateUserWizardAutoFormat.cs
- SpeakCompletedEventArgs.cs
- TakeQueryOptionExpression.cs
- ConsoleCancelEventArgs.cs
- GiveFeedbackEvent.cs
- _SpnDictionary.cs
- CompoundFileDeflateTransform.cs
- AsyncOperationManager.cs
- XmlReaderSettings.cs
- TextContainerHelper.cs
- SqlDataSourceFilteringEventArgs.cs
- QilIterator.cs
- UxThemeWrapper.cs
- CellTreeNodeVisitors.cs
- Panel.cs
- AuthorizationSection.cs
- XmlMembersMapping.cs
- MatrixUtil.cs
- CodeCastExpression.cs
- Dump.cs
- CodeTypeReferenceExpression.cs
- ByteStreamMessageEncoder.cs
- CommentAction.cs
- IgnoreDataMemberAttribute.cs
- OleDbCommand.cs
- ResponseStream.cs
- Int32CollectionConverter.cs
- XmlCDATASection.cs
- ManipulationStartedEventArgs.cs
- NamedPipeProcessProtocolHandler.cs
- PersonalizationStateInfoCollection.cs
- InvalidDataException.cs
- IndependentlyAnimatedPropertyMetadata.cs
- Literal.cs
- EventLogEntryCollection.cs
- _NestedSingleAsyncResult.cs
- contentDescriptor.cs
- Polyline.cs
- XmlExpressionDumper.cs
- CapabilitiesAssignment.cs
- DataRelation.cs
- CompiledIdentityConstraint.cs
- CalendarBlackoutDatesCollection.cs
- DataControlFieldCell.cs
- ConnectionStringSettings.cs
- Mapping.cs
- DbDataSourceEnumerator.cs
- TransportBindingElement.cs
- VirtualPathData.cs
- FreezableCollection.cs
- CodePrimitiveExpression.cs
- TimeStampChecker.cs
- CapabilitiesSection.cs
- DataObjectEventArgs.cs
- PrimitiveType.cs
- WebGetAttribute.cs
- ResolveNameEventArgs.cs
- Visitor.cs
- OpCopier.cs
- PersistChildrenAttribute.cs
- AdornerHitTestResult.cs
- XmlArrayItemAttributes.cs
- RepeatBehaviorConverter.cs
- ActivityWithResultValueSerializer.cs
- TypographyProperties.cs
- ConnectionStringSettingsCollection.cs
- BooleanConverter.cs
- LogFlushAsyncResult.cs
- ResourceIDHelper.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- StopStoryboard.cs
- DbRetry.cs
- CLSCompliantAttribute.cs
- SemanticBasicElement.cs
- CustomValidator.cs
- VersionPair.cs
- ConditionalAttribute.cs
- Freezable.cs
- KeyValuePair.cs
- NumberFunctions.cs
- ACE.cs
- MultipleViewPatternIdentifiers.cs
- DefinitionUpdate.cs
- SyndicationCategory.cs
- InvokeHandlers.cs
- FlowDocumentReaderAutomationPeer.cs
- DoubleAnimationClockResource.cs
- TableCell.cs
- CrossContextChannel.cs
- IOException.cs
- DataGridLinkButton.cs
- ProjectedSlot.cs
- DataTableReader.cs
- ConnectionPointCookie.cs