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
- HtmlTitle.cs
- MaskedTextBoxDesigner.cs
- GridViewRow.cs
- DomNameTable.cs
- ParameterReplacerVisitor.cs
- ValueUtilsSmi.cs
- VerticalConnector.xaml.cs
- XmlSiteMapProvider.cs
- RowType.cs
- CreateDataSourceDialog.cs
- ExpressionNode.cs
- Thumb.cs
- RegexCode.cs
- UserControl.cs
- CommandField.cs
- BamlStream.cs
- DuplicateDetector.cs
- ViewManager.cs
- StateManagedCollection.cs
- ColorIndependentAnimationStorage.cs
- PermissionSetTriple.cs
- ConstNode.cs
- ChannelListenerBase.cs
- PreviewKeyDownEventArgs.cs
- ConfigurationSectionCollection.cs
- QuaternionRotation3D.cs
- PropertyMappingExceptionEventArgs.cs
- ProxyElement.cs
- ToolStripItemBehavior.cs
- ServiceObjectContainer.cs
- Matrix3DValueSerializer.cs
- WebBrowserHelper.cs
- TimeoutTimer.cs
- HttpRuntimeSection.cs
- DataContractSerializer.cs
- WindowsScrollBar.cs
- CounterSample.cs
- TokenBasedSetEnumerator.cs
- XPathNodePointer.cs
- XsltFunctions.cs
- ModuleConfigurationInfo.cs
- BookmarkScopeInfo.cs
- ConstraintConverter.cs
- ContentControl.cs
- DbCommandTree.cs
- IgnoreSectionHandler.cs
- Triplet.cs
- ArgumentDesigner.xaml.cs
- TextLineBreak.cs
- SizeF.cs
- TransformerTypeCollection.cs
- BaseDataBoundControl.cs
- ServicesExceptionNotHandledEventArgs.cs
- CapiSymmetricAlgorithm.cs
- ResourceAttributes.cs
- RuntimeConfig.cs
- OleDbRowUpdatingEvent.cs
- XmlParserContext.cs
- MarkupCompiler.cs
- QueryAccessibilityHelpEvent.cs
- XmlnsCompatibleWithAttribute.cs
- SrgsOneOf.cs
- NamespaceDisplay.xaml.cs
- Debugger.cs
- Peer.cs
- IgnoreDeviceFilterElementCollection.cs
- sqlcontext.cs
- StatusBarDrawItemEvent.cs
- ErrorFormatter.cs
- BinaryParser.cs
- CodeSnippetExpression.cs
- GridViewCellAutomationPeer.cs
- DelimitedListTraceListener.cs
- InternalPermissions.cs
- KeysConverter.cs
- RestHandler.cs
- TcpClientSocketManager.cs
- PhysicalFontFamily.cs
- UserMapPath.cs
- RuleSettings.cs
- WhitespaceReader.cs
- TextRunCacheImp.cs
- TreeNodeCollection.cs
- InputManager.cs
- ParagraphResult.cs
- AnnouncementClient.cs
- ClientCultureInfo.cs
- LocatorBase.cs
- UDPClient.cs
- RoutedEventHandlerInfo.cs
- DataSetSchema.cs
- BuilderPropertyEntry.cs
- UpdateCompiler.cs
- TrackingExtract.cs
- RealProxy.cs
- PreviewPrintController.cs
- TouchesOverProperty.cs
- TagMapInfo.cs
- _IPv6Address.cs
- DataGridViewComboBoxColumn.cs